Path: blob/main/components/dashboard/tailwind.config.js
2492 views
/**1* Copyright (c) 2021 Gitpod GmbH. All rights reserved.2* Licensed under the GNU Affero General Public License (AGPL).3* See License.AGPL.txt in the project root for license information.4*/56// tailwind.config.js7const colors = require("tailwindcss/colors");89// TODO: Can replace these w/ rgb(var(...)) references so colors are only defined in our main CSS file10const podkitColors = {11black: "#161616",12white: "#FFFFFF",13gray: {14900: "#12100C",15850: "#151310",16800: "#23211E",17750: "#2C2B28",18700: "#514F4D",19600: "#565451",20500: "#666564",21450: "#999795",22400: "#747372",23300: "#DADADA",24200: "#ECE7E5",25100: "#F5F4F4",2650: "#F9F9F9",27},28};2930module.exports = {31jit: true,32content: ["./public/**/*.html", "./src/**/*.{js,ts,tsx}"],33important: true,34darkMode: "class",35theme: {36extend: {37colors: {38green: colors.lime,39orange: colors.amber,40// TODO: figure out if we want to just pull in the specific gitpod-* colors41teal: colors.teal,42sky: colors.sky,43rose: colors.rose,44"gitpod-black": podkitColors.black,45"gitpod-red": "#CE4A3E",46"kumquat-dark": "#FF8A00",47"kumquat-base": "#FFAE33",48"kumquat-ripe": "#FFB45B",49"kumquat-light": "#FFE4BC",50gray: podkitColors.gray,51// Podkit colors - eventually we'll only use these colors52// Once migrated, we can remove the colors above and shift this up under theme directly instead of extend53"pk-content": {54primary: "rgb(var(--content-primary) / <alpha-value>)",55secondary: "rgb(var(--content-secondary) / <alpha-value>)",56tertiary: "rgb(var(--content-tertiary) / <alpha-value>)",57disabled: "rgb(var(--content-disabled) / <alpha-value>)",58"invert-primary": "rgb(var(--content-invert-primary) / <alpha-value>)",59"invert-secondary": "rgb(var(--content-invert-secondary) / <alpha-value>)",60danger: "rgb(var(--content-danger) / <alpha-value>)",61},62"pk-surface": {63primary: "rgb(var(--surface-primary) / <alpha-value>)",64secondary: "rgb(var(--surface-secondary) / <alpha-value>)",65tertiary: "rgb(var(--surface-tertiary) / <alpha-value>)",66labels: "rgb(var(--surface-labels) / <alpha-value>)",67invert: "rgb(var(--surface-invert) / <alpha-value>)",68"01": "rgb(var(--surface-01) / <alpha-value>)",69},70"pk-border": {71light: "rgb(var(--border-light) / <alpha-value>)",72base: "rgb(var(--border-base) / <alpha-value>)",73strong: "rgb(var(--border-strong) / <alpha-value>)",74invert: "rgb(var(--border-invert) / <alpha-value>)",75},76},77boxShadow: {78engraving: "inset 0px 1px 1px rgba(0, 0, 0, 0.1)",79},80backgroundImage: {81"kumquat-gradient": "linear-gradient(137.41deg, #FFAD33 14.37%, #FF8A00 91.32%)",82},83container: {84center: true,85},86outline: {87blue: "1px solid #000033",88},89width: {90112: "28rem",91128: "32rem",92},93height: {94112: "28rem",95},96lineHeight: {9764: "64px",98},99keyframes: {100"toast-in-right": {101from: { transform: "translateX(100%)" },102to: { transform: "translateX(0)" },103},104"fade-in": {105"0%": { opacity: "0" },106"100%": { opacity: "1" },107},108"accordion-down": {109from: { height: "0" },110to: { height: "var(--radix-accordion-content-height)" },111},112"accordion-up": {113from: { height: "var(--radix-accordion-content-height)" },114to: { height: "0" },115},116},117animation: {118"toast-in-right": "toast-in-right 0.3s ease-in-out",119"fade-in": "fade-in 3s linear",120"fade-in-fast": "fade-in .3s ease-in-out",121"spin-slow": "spin 2s linear infinite",122"accordion-down": "accordion-down 0.2s ease-out",123"accordion-up": "accordion-up 0.2s ease-out",124},125transitionProperty: {126width: "width",127},128},129fontFamily: {130sans: [131"Inter",132"system-ui",133"-apple-system",134"BlinkMacSystemFont",135"Segoe UI",136"Roboto",137"Helvetica Neue",138"Arial",139"Noto Sans",140"sans-serif",141"Apple Color Emoji",142"Segoe UI Emoji",143"Segoe UI Symbol",144"Noto Color Emoji",145],146mono: [147"JetBrains Mono",148"SF Mono",149"Monaco",150"Inconsolata",151"Fira Mono",152"Droid Sans Mono",153"Source Code Pro",154"monospace",155],156},157underlineThickness: {158thin: "2px",159thick: "5px",160},161underlineOffset: {162small: "2px",163medium: "5px",164},165filter: {166// defaults to {}167// https://github.com/benface/tailwindcss-filters#usage168none: "none",169grayscale: "grayscale(1)",170invert: "invert(1)",171"brightness-10": "brightness(10)",172},173},174variants: {175extend: {176opacity: ["disabled"],177display: ["dark"],178},179},180plugins: [181require("@tailwindcss/forms"),182require("tailwind-underline-utils"),183require("tailwindcss-filters"),184require("tailwindcss-animate"),185// ...186],187};188189190