mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
* Init prebuilds list * Text size and color tweaks * Dropdown filtering UI * wip changes * File renames and such * Filter by state * fix path * Add configuration ID filtering * Prebuild list error state * Protobuf sorting definition * API-level sorting * Simplify pagination * Fix undefined inference * Dashboard adopt sort behavior * make sorting required * Move ordering 🤷♂️ This will most definetely not solve anything, but... * Hopefully fix sorting 🤷♂️ * less `as` * Simplify state check * Repeated sorting * Sort out sorting Sorry :/ * [dashboard] add single prebuild detail page * 💄 * update backlink of bread nav * Configuration dropdown WIP * Make configuration filter disableable * Use in in SQL * Minor styling adjustements * Nav item * Rename menu item * Const 🤷♂️ * Always display filter reset opt * Add prebuild link to prebuild settings * Simplify * Don't throw errors All my homies hate throwing in `server` * FF hook * Name failed to load state * typo * Better unknown inference * Add ConfigurationField component to display repository name and link * Do not retry configuration load * Move prebuild utils * Unify sort types * Refactor PrebuildTable to use arrow function syntax for mapping prebuilds * fix imports * Widen triggered column * Widen even more * Shorten status labels * fix newline * Align prebuild status logic * Init ws db tests * Rename list item comp accordingly T'was an oopsie doopsie * Test configuration ids and branches filtering * Use lodash debouncing for xterm resize * podkidify classname merges * Rerun prebuild loading indicator * Revert "podkidify classname merges" This reverts commit 610318ac34db07f1a5ac1454aec38eaabfdc6d3c. * use cn for classes instead of templ strings * Properly debounce * Update xterm to v5.3.0 and xterm-addon-fit to v0.8.0 * Update xterm to `5.4.0-beta.37` to fix overflow bug https://github.com/xtermjs/xterm.js/issues/4805 * Fix border colors * make load button really load * Get rid of loading state on trigger * driveby: Fix login buttons --------- Co-authored-by: Filip Troníček <filip@gitpod.io>
172 lines
5.6 KiB
JavaScript
172 lines
5.6 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");
|
|
|
|
// TODO: Can replace these w/ rgb(var(...)) references so colors are only defined in our main CSS file
|
|
const podkitColors = {
|
|
black: "#161616",
|
|
white: "#FFFFFF",
|
|
gray: {
|
|
900: "#12100C",
|
|
850: "#151310",
|
|
800: "#23211E",
|
|
750: "#2C2B28",
|
|
700: "#514F4D",
|
|
600: "#565451",
|
|
500: "#666564",
|
|
450: "#999795",
|
|
400: "#747372",
|
|
300: "#DADADA",
|
|
200: "#ECE7E5",
|
|
100: "#F5F4F4",
|
|
50: "#F9F9F9",
|
|
},
|
|
};
|
|
|
|
module.exports = {
|
|
jit: true,
|
|
content: ["./public/**/*.html", "./src/**/*.{js,ts,tsx}"],
|
|
important: true,
|
|
darkMode: "class",
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
green: colors.lime,
|
|
orange: colors.amber,
|
|
// 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": podkitColors.black,
|
|
"gitpod-red": "#CE4A3E",
|
|
"kumquat-dark": "#FF8A00",
|
|
"kumquat-base": "#FFAE33",
|
|
"kumquat-ripe": "#FFB45B",
|
|
"kumquat-light": "#FFE4BC",
|
|
gray: podkitColors.gray,
|
|
// Podkit colors - eventually we'll only use these colors
|
|
// Once migrated, we can remove the colors above and shift this up under theme directly instead of extend
|
|
"pk-content": {
|
|
primary: "rgb(var(--content-primary) / <alpha-value>)",
|
|
secondary: "rgb(var(--content-secondary) / <alpha-value>)",
|
|
tertiary: "rgb(var(--content-tertiary) / <alpha-value>)",
|
|
disabled: "rgb(var(--content-disabled) / <alpha-value>)",
|
|
"invert-primary": "rgb(var(--content-invert-primary) / <alpha-value>)",
|
|
"invert-secondary": "rgb(var(--content-invert-secondary) / <alpha-value>)",
|
|
danger: "rgb(var(--content-danger) / <alpha-value>)",
|
|
},
|
|
"pk-surface": {
|
|
primary: "rgb(var(--surface-primary) / <alpha-value>)",
|
|
secondary: "rgb(var(--surface-secondary) / <alpha-value>)",
|
|
tertiary: "rgb(var(--surface-tertiary) / <alpha-value>)",
|
|
labels: "rgb(var(--surface-labels) / <alpha-value>)",
|
|
invert: "rgb(var(--surface-invert) / <alpha-value>)",
|
|
},
|
|
"pk-border": {
|
|
base: "rgb(var(--border-base) / <alpha-value>)",
|
|
},
|
|
},
|
|
backgroundImage: {
|
|
"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",
|
|
},
|
|
height: {
|
|
112: "28rem",
|
|
},
|
|
lineHeight: {
|
|
64: "64px",
|
|
},
|
|
keyframes: {
|
|
"toast-in-right": {
|
|
from: { transform: "translateX(100%)" },
|
|
to: { transform: "translateX(0)" },
|
|
},
|
|
"fade-in": {
|
|
"0%": { opacity: "0" },
|
|
"100%": { opacity: "1" },
|
|
},
|
|
},
|
|
animation: {
|
|
"toast-in-right": "toast-in-right 0.3s ease-in-out",
|
|
"fade-in": "fade-in 3s linear",
|
|
"fade-in-fast": "fade-in .3s ease-in-out",
|
|
"spin-slow": "spin 2s linear infinite",
|
|
},
|
|
transitionProperty: {
|
|
width: "width",
|
|
},
|
|
},
|
|
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"),
|
|
require("tailwindcss-animate"),
|
|
// ...
|
|
],
|
|
};
|