cloud / internal-packages / installer / src / styles.cssmain at aacbc74
@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";
/* the UI kit's tokens beyond shadcn's (status colours, Cloudflare's orange); light values below */
@import "../node_modules/@iterate-com/ui/src/styles/tokens.css";
@source "../node_modules/@iterate-com/ui/src/components";
/* Light only: dark: never applies, whatever the OS says. */
@custom-variant dark (&:is(.never-dark *));
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-link: var(--link);
--color-page: var(--page);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
}
/* shadcn's neutral palette, its light values; a grey page under white cards */
:root {
color-scheme: light;
--radius: 0.625rem;
--page: oklch(0.975 0 0);
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--primary: oklch(0.205 0 0);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.97 0 0);
--secondary-foreground: oklch(0.205 0 0);
--muted: oklch(0.955 0 0);
--muted-foreground: oklch(0.52 0 0);
--accent: oklch(0.97 0 0);
--accent-foreground: oklch(0.205 0 0);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.912 0 0);
--input: oklch(0.88 0 0);
--ring: oklch(0.205 0 0); /* the kit draws it at half strength: still 3:1 on white */
--link: oklch(0.5 0.2 262);
/* the sidebar is the page: white, with the grey fill under the item you point at (iterate.css) */
--sidebar: var(--background);
--sidebar-foreground: var(--foreground);
--sidebar-primary: var(--primary);
--sidebar-primary-foreground: var(--primary-foreground);
--sidebar-accent: var(--accent);
--sidebar-accent-foreground: var(--accent-foreground);
--sidebar-border: var(--border);
--sidebar-ring: var(--ring);
--success: oklch(0.62 0.16 152);
--warning: oklch(0.72 0.17 70);
--info: oklch(0.55 0.17 250);
}
@layer base {
* {
@apply border-border outline-ring/50;
}
html,
body {
margin: 0;
}
body {
@apply bg-page text-foreground antialiased;
}
}
/* A phone: everything pressable is at least 40px, and a field is as tall as the button beside it. */
@media (max-width: 639px) {
[data-slot="button"],
[data-slot="cloudflare-button"] {
min-height: 2.5rem;
min-width: 2.5rem;
}
[data-slot="input"],
[data-slot="native-select"] {
min-height: 2.5rem;
}
}
/* A phone: the sidebar's sheet fills the screen, as in the apps (the UI kit's globals.css). */
@media (width < 40rem) {
[data-slot="sidebar"][data-mobile="true"] {
width: 100%;
}
}
@media (prefers-reduced-motion: reduce) {
*:not([data-slot="spinner"]),
::before,
::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}