gitpod/components/dashboard/tailwind.config.js
Brad Harris ee4a5a0932
Adding Toasts (#17030)
* wip for toasts

* set max width

* getting toasts working

* update workspace timeout ui and add toast

* put in a portal

* adding some aria props

* renaming to toast()

* improve mobile styles

* shift dotfiles repo update into mutation

* remove test button

* Update components/dashboard/src/user-settings/Preferences.tsx

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>

* Update components/dashboard/src/user-settings/Preferences.tsx

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>

* Adjusting styling per PR feedback

* don't hide toasts on hover

---------

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
2023-04-06 13:55:46 +02:00

120 lines
3.5 KiB
JavaScript

/**
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License.AGPL.txt in the project root for license information.
*/
// tailwind.config.js
const colors = require("tailwindcss/colors");
module.exports = {
jit: true,
purge: ["./public/**/*.html", "./src/**/*.{js,ts,tsx}"],
important: true,
darkMode: "class",
theme: {
extend: {
colors: {
gray: colors.warmGray,
green: colors.lime,
orange: colors.amber,
blue: {
light: "#75A9EC",
DEFAULT: "#5C8DD6",
dark: "#265583",
},
// TODO: figure out if we want to just pull in the specific gitpod-* colors
teal: colors.teal,
sky: colors.sky,
rose: colors.rose,
"gitpod-black": "#161616",
"gitpod-gray": "#8E8787",
"gitpod-red": "#CE4A3E",
"gitpod-kumquat-light": "#FFE4BC",
"gitpod-kumquat": "#FFB45B",
"gitpod-kumquat-dark": "#FF8A00",
"gitpod-kumquat-darker": "#f28300",
"gitpod-kumquat-gradient": "linear-gradient(137.41deg, #FFAD33 14.37%, #FF8A00 91.32%)",
},
container: {
center: true,
},
outline: {
blue: "1px solid #000033",
},
width: {
112: "28rem",
128: "32rem",
},
lineHeight: {
64: "64px",
},
keyframes: {
"toast-in-right": {
from: { transform: "translateX(100%)" },
to: { transform: "translateX(0)" },
},
},
animation: {
"toast-in-right": "toast-in-right 0.3s ease-in-out",
},
},
fontFamily: {
sans: [
"Inter",
"system-ui",
"-apple-system",
"BlinkMacSystemFont",
"Segoe UI",
"Roboto",
"Helvetica Neue",
"Arial",
"Noto Sans",
"sans-serif",
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
"Noto Color Emoji",
],
mono: [
"JetBrains Mono",
"SF Mono",
"Monaco",
"Inconsolata",
"Fira Mono",
"Droid Sans Mono",
"Source Code Pro",
"monospace",
],
},
underlineThickness: {
thin: "2px",
thick: "5px",
},
underlineOffset: {
small: "2px",
medium: "5px",
},
filter: {
// defaults to {}
// https://github.com/benface/tailwindcss-filters#usage
none: "none",
grayscale: "grayscale(1)",
invert: "invert(1)",
"brightness-10": "brightness(10)",
},
},
variants: {
extend: {
opacity: ["disabled"],
display: ["dark"],
},
},
plugins: [
require("@tailwindcss/forms"),
require("tailwind-underline-utils"),
require("tailwindcss-filters"),
// ...
],
};