mirror of
https://github.com/bitwarden/browser
synced 2026-01-22 04:13:49 +00:00
* add new color palette to theme and tailwind config * updated docs color names * remove safelist changes * add missing accent colors to docs * updated color mappings * combined docs in colors.mdx and reference in Claude.md * add variables for white and black * updated docs * updated list rendering style * more specific docs instructions * revert to simpler colors docs reference * remove changes to claude.md * use rgb color variables to compose semantic
27 lines
829 B
JavaScript
27 lines
829 B
JavaScript
/* eslint-disable */
|
|
const config = require("./tailwind.config.base");
|
|
|
|
config.content = [
|
|
"libs/components/src/**/*.{html,ts,mdx}",
|
|
"libs/assets/src/**/*.{html,ts,mdx}",
|
|
"libs/auth/src/**/*.{html,ts,mdx}",
|
|
"libs/vault/src/**/*.{html,ts,mdx}",
|
|
"apps/web/src/**/*.{html,ts,mdx}",
|
|
"apps/browser/src/**/*.{html,ts,mdx}",
|
|
"bitwarden_license/bit-web/src/**/*.{html,ts,mdx}",
|
|
".storybook/preview.tsx",
|
|
];
|
|
|
|
// Safelist is required for dynamic color classes in Storybook color documentation (colors.mdx).
|
|
// Tailwind's JIT compiler cannot detect dynamically constructed class names like `tw-bg-${name}`,
|
|
// so we must explicitly safelist these patterns to ensure all color utilities are generated.
|
|
config.safelist = [
|
|
{
|
|
pattern: /tw-bg-(.*)/,
|
|
},
|
|
];
|
|
|
|
config.corePlugins.preflight = true;
|
|
|
|
module.exports = config;
|