708ebbde14
* Don’t show the Ready To Run Job prompt if you have an Integration that needs attention * Don’t highlight the row red or green * Improvements to the contrast of the app sections and dividers * Removed the Jobs page title as it’s duped info * using the new border variable * Sticky last table cell * Improved the sticky last table cell * Make any last cell in a table sticky by adding isSticky to it * Added a dropdown menu to the menu table cell * table rows can be marked as disabled by adding disabled * Using the jobTestPath function for the test path * tidy up imports * Removed un-used props * Removed the green badge variant * Added a new status badge to the Runs table * Clicking the gradient clicks the row * Delete Job triggers a modal popup * Added a large danger button type * Added some modal styling and started adding data * Added more styling and data to the delete job modal * A table can now be given a full width prop * Large danger button added to Storybook * Danger button disabled state looks disabled now * New active badge component to display in the table and logic for showing the env data * Style updates to the dialog component * active and job status badges can now have a small size * Added a new named icon * The Job page shows the Job status in the PageInfoRow * Small badge style update * Runs table has a sticky right cell * Created a JobStatusTable component * Added some placeholder help panel content for disabling a Job * WIP creating a Settings page * Added a delete button that triggers the delete modal – just need data hooking up * Implemented deleting jobs from the dashboard --------- Co-authored-by: Eric Allam <eallam@icloud.com>
197 lines
5.1 KiB
JavaScript
197 lines
5.1 KiB
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
const colors = require("tailwindcss/colors");
|
|
|
|
const slate = {
|
|
...colors.slate,
|
|
450: "#7E8FA6",
|
|
500: "#6B7C95",
|
|
550: "#586981",
|
|
600: "#45566D",
|
|
650: "#3C4B62",
|
|
750: "#293649",
|
|
850: "#1A2434",
|
|
900: "#131B2B",
|
|
};
|
|
|
|
/** Trigger.dev custom palette */
|
|
const midnight = {
|
|
...colors.slate,
|
|
450: colors.slate[850],
|
|
500: colors.slate[650],
|
|
550: colors.slate[700],
|
|
600: colors.slate[750],
|
|
650: colors.slate[800],
|
|
750: colors.slate[850],
|
|
800: colors.slate[900],
|
|
850: "#0E1521",
|
|
900: "#0B1018",
|
|
};
|
|
|
|
/** Text colors */
|
|
const bright = colors.slate[200];
|
|
const dimmed = colors.slate[400];
|
|
|
|
/** Shadcn colors */
|
|
const background = midnight[900];
|
|
const foreground = "hsl(213 31% 91%)";
|
|
const muted = "hsl(223 47% 11%)";
|
|
const mutedForeground = "hsl(215.4 16.3% 56.9%)";
|
|
const popover = slate[850];
|
|
const popoverForeground = colors.slate[800];
|
|
const card = "hsl(0 0% 100%)";
|
|
const cardForeground = "hsl(222.2 47.4% 11.2%)";
|
|
const border = slate[850];
|
|
const input = slate[850];
|
|
const primary = colors.indigo[600];
|
|
const primaryForeground = colors.indigo[500];
|
|
const secondary = "hsl(222.2 47.4% 11.2%)";
|
|
const secondaryForeground = slate[850];
|
|
const tertiary = "hsl(217 37% 7% / 0)";
|
|
const tertiaryForeground = slate[850];
|
|
const accent = slate[750];
|
|
const accentForeground = "hsl(210 40% 98%)";
|
|
const destructive = "hsl(0 63% 31%)";
|
|
const destructiveForeground = "hsl(210 40% 98%)";
|
|
const ring = colors.indigo[600];
|
|
const radius = "0.5rem";
|
|
const darkBackground = midnight[900];
|
|
const divide = slate[850];
|
|
|
|
/** @type {import('tailwindcss').Config} */
|
|
module.exports = {
|
|
content: [
|
|
"./app/**/*.{ts,jsx,tsx}",
|
|
// include packages if not transpiling
|
|
"../../packages/**/*.{ts,tsx}",
|
|
],
|
|
theme: {
|
|
container: {
|
|
center: true,
|
|
padding: "2rem",
|
|
screens: {
|
|
"2xl": "1400px",
|
|
},
|
|
},
|
|
extend: {
|
|
fontFamily: {
|
|
sans: ["Inter", "sans-serif"],
|
|
mono: ["Roboto Mono", "monospace"],
|
|
title: ["Poppins", "sans-serif"]
|
|
},
|
|
fontSize: {
|
|
xxs: [
|
|
"0.65rem",
|
|
{
|
|
lineHeight: "0.75rem",
|
|
letterSpacing: "-0.01em",
|
|
fontWeight: "500",
|
|
},
|
|
],
|
|
},
|
|
colors: {
|
|
midnight,
|
|
darkBackground,
|
|
divide,
|
|
bright,
|
|
dimmed,
|
|
background,
|
|
border,
|
|
input,
|
|
ring,
|
|
foreground,
|
|
primary: {
|
|
DEFAULT: primary,
|
|
foreground: primaryForeground,
|
|
},
|
|
secondary: {
|
|
DEFAULT: secondary,
|
|
foreground: secondaryForeground,
|
|
},
|
|
tertiary: {
|
|
DEFAULT: tertiary,
|
|
foreground: tertiaryForeground,
|
|
},
|
|
destructive: {
|
|
DEFAULT: destructive,
|
|
foreground: destructiveForeground,
|
|
},
|
|
muted: {
|
|
DEFAULT: muted,
|
|
foreground: mutedForeground,
|
|
},
|
|
accent: {
|
|
DEFAULT: accent,
|
|
foreground: accentForeground,
|
|
},
|
|
popover: {
|
|
DEFAULT: popover,
|
|
foreground: popoverForeground,
|
|
},
|
|
card: {
|
|
DEFAULT: card,
|
|
foreground: cardForeground,
|
|
},
|
|
slate,
|
|
acid: {
|
|
400: "#F1FF98",
|
|
500: "#E7FF52",
|
|
600: "#FFF067",
|
|
},
|
|
toxic: {
|
|
400: "#8EFF9A",
|
|
500: "#41FF54",
|
|
600: "#00FFA3",
|
|
},
|
|
devEnv: colors.pink,
|
|
liveEnv: colors.green,
|
|
uiBorder: slate[800],
|
|
},
|
|
borderRadius: {
|
|
lg: radius,
|
|
md: `calc(${radius} - 2px)`,
|
|
sm: `calc(${radius} - 4px)`,
|
|
},
|
|
boxShadow: {
|
|
"glow-primary": "0 0 10px 5px rgba(218, 244, 55, 0.2)",
|
|
"glow-secondary": "0 0 10px 5px rgba(79, 70, 229, 0.2)",
|
|
"glow-pink": "0 0 10px 5px rgba(236, 72, 153, 0.2)",
|
|
},
|
|
keyframes: {
|
|
"accordion-down": {
|
|
from: { height: 0 },
|
|
to: { height: "var(--radix-accordion-content-height)" },
|
|
},
|
|
"accordion-up": {
|
|
from: { height: "var(--radix-accordion-content-height)" },
|
|
to: { height: 0 },
|
|
},
|
|
float: {
|
|
"0%": { transform: "translatey(0px)" },
|
|
"50%": { transform: "translatey(7px)" },
|
|
"100%": { transform: "translatey(0px)" },
|
|
},
|
|
},
|
|
animation: {
|
|
"accordion-down": "accordion-down 0.2s ease-out",
|
|
"accordion-up": "accordion-up 0.2s ease-out",
|
|
},
|
|
backgroundImage: {
|
|
"gradient-radial": "radial-gradient(closest-side, var(--tw-gradient-stops))",
|
|
"gradient-primary": `linear-gradient(90deg, acid-500 0%, toxic-500 100%)`,
|
|
"gradient-primary-hover": `linear-gradient(80deg, acid-600 0%, toxic-600 100%)`,
|
|
"gradient-secondary": `linear-gradient(90deg, hsl(271 91 65) 0%, hsl(221 83 53) 100%)`,
|
|
"gradient-radial-secondary": `radial-gradient(hsl(271 91 65), hsl(221 83 53))`,
|
|
},
|
|
gridTemplateColumns: {
|
|
carousel: "repeat(6, 200px)",
|
|
},
|
|
},
|
|
},
|
|
plugins: [
|
|
require("@tailwindcss/forms"),
|
|
require("@tailwindcss/typography"),
|
|
require("tailwindcss-animate"),
|
|
require("tailwind-scrollbar"),
|
|
],
|
|
};
|