Skip to content

A self-hosted media server and file management system

3.2 KB
Raw Blame
@import 'tailwindcss';

@import './theme.css';
@import './cedar-base.css';
@import './cedar-theme.css';
@import './fonts.css';

@plugin '@tailwindcss/forms';
@plugin '@tailwindcss/aspect-ratio';
@plugin 'tailwind-scrollbar-hide';

@config '../../tailwind.config.ts';

/*
  The default border color has changed to `currentcolor` in Tailwind CSS v4,
  so we've added these compatibility styles to make sure everything still
  looks the same as it did with Tailwind CSS v3.

  If we ever want to remove these styles, we need to add an explicit border
  color utility to any element that depends on these defaults.
*/
@layer base {
    [v-cloak] {
        display: none;
    }

    html {
        font-family: 'DM Sans', sans-serif;
    }

    h1,
    h2 {
        font-family: 'Rubik', sans-serif;
        font-weight: 200;
    }

    .tabular-nums {
        @apply font-figtree;
    }

    .debug {
        position: absolute;
        top: 0%;
        left: 0%;
        padding: 0.5rem;
        background-color: white;
        color: black;
    }
    * {
        outline-color: black;
    }

    html.dark * {
        outline-color: white;
    }
}

@layer base {
    @theme {
        /* Colors */
        --color-primary-800: #f4f4f5;
        --color-primary-900: #fafafa;
        --color-primary-950: #fcf9f8;

        --color-primary-dark-600: #2a2a2d;
        --color-primary-dark-700: #26262a;
        --color-primary-dark-800: #27272a;
        --color-primary-dark-900: #18181b;
        --color-primary-dark-950: #101014;

        --color-accent-500: #f59e0b;
        --color-accent-600: #ea580c;

        /* Fonts */
        --font-quicksand: 'Quicksand', sans-serif;
        --font-figtree: 'Figtree', sans-serif;
        --font-rubik: 'Rubik', sans-serif;
        --font-dm-sans: 'DM Sans', sans-serif;
        --font-klee-one: 'Klee One', 'DM Sans', sans-serif;
        --font-sans: 'Figtree', ui-sans-serif, system-ui, sans-serif;

        --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
        --font-mono: var(--mono);
        --font-jetbrains-mono: 'JetBrains Mono', var(--mono);
        --font-geist-mono: 'Geist Mono', var(--mono);
        --font-commit-mono: 'Commit Mono', var(--mono);
        --font-lyrics: 'Klee One', var(--font-commit-mono);
        --font-lyrics-cn: 'Ma Shan Zheng', var(--mono);
        --font-lyrics-mixed: 'Ma Shan Zheng', 'Klee One', var(--font-commit-mono);

        /* Aspect ratios */
        --aspect-video: 16 / 9;
        --aspect-square: 1 / 1;
        --aspect-portrait: 9 / 16;
        --aspect-1-2: 1 / 2;
        --aspect-2-3: 2 / 3;
        --aspect-3-4: 3 / 4;

        /* Breakpoints */
        --breakpoint-xxs: 18rem; /* 288px */
        --breakpoint-xs: 21.5rem; /* 344px */
        --breakpoint-xms: 22.5rem; /* 360px */
        --breakpoint-xm: 25rem; /* 400px */
        --breakpoint-xsm: 27rem; /* 432px */
        --breakpoint-3xl: 125rem; /* 2000px */

        /* Drawer */
        --max-drawer-height: 70vh;
    }

    /* ?
    .dark {
        --color-primary-800: #27272a;
        --color-primary-900: #18181b;
        --color-primary-950: #101014;

        --color-accent-500: #a855f7;
        --color-accent-600: #9333ea;
    } */
}