/* starlight's recipe orders base before theme, but the web tokens put their dark overrides in base: theme (variables only) goes first so they win */ @layer theme, base, starlight, components, utilities; @import "@astrojs/starlight-tailwind"; @import "tailwindcss/theme.css" layer(theme); @import "tailwindcss/utilities.css" layer(utilities); /* the web app's tokens, dark variant and utilities. static, since the other stylesheets here map starlight onto these variables directly */ @import "../../../web/src/theme.css" theme(static); /* the web app's self-hosted fonts; the files land in public/fonts from nix/pkgs/web-static-files.nix (docs.nix preBuild, or the dev shell) */ @import "../../../web/src/fonts.css"; /* how tangled.org renders markdown. its rules sit in the components layer, so they win over starlight's own content styles */ @import "../../../web/src/markup.css"; @source "../../../web/src/lib/components/ui"; /* preflight's link reset, which the components assume (starlight-tailwind doesn't restore it): links outside content take their parent's color */ @layer base { a { color: inherit; } }