mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-25 12:15:18 +01:00
07c7357825
* Initial commit * Updated stories / Fixed issues with dark theme constrast color * Force colors so bootstrap doesn't override * Fixed text colors / Added initial tests * Added jest debugging ability to components package * Removed spec file * Fixed anchor layout * revert base font-size * [CL-28] fixed indentation, used focus-visible, adjusted disabled colors * [CL-28] Reduced ring thickness to better match figma * [CL-28] Updated story link * [CL-44] [CL-28] Updated tabs disabled color / Converted to rgb format with helper
85 lines
2.3 KiB
JavaScript
85 lines
2.3 KiB
JavaScript
/* eslint-disable */
|
|
const colors = require("tailwindcss/colors");
|
|
|
|
function rgba(color) {
|
|
return "rgb(var(" + color + ") / <alpha-value>)";
|
|
}
|
|
|
|
module.exports = {
|
|
prefix: "tw-",
|
|
content: ["./src/**/*.{html,ts}", "../../libs/components/src/**/*.{html,ts}"],
|
|
safelist: [],
|
|
corePlugins: { preflight: false },
|
|
theme: {
|
|
colors: {
|
|
transparent: colors.transparent,
|
|
current: colors.current,
|
|
black: colors.black,
|
|
primary: {
|
|
300: rgba("--color-primary-300"),
|
|
500: rgba("--color-primary-500"),
|
|
700: rgba("--color-primary-700"),
|
|
},
|
|
secondary: {
|
|
100: rgba("--color-secondary-100"),
|
|
300: rgba("--color-secondary-300"),
|
|
500: rgba("--color-secondary-500"),
|
|
700: rgba("--color-secondary-700"),
|
|
},
|
|
success: {
|
|
500: rgba("--color-success-500"),
|
|
700: rgba("--color-success-700"),
|
|
},
|
|
danger: {
|
|
500: rgba("--color-danger-500"),
|
|
700: rgba("--color-danger-700"),
|
|
},
|
|
warning: {
|
|
500: rgba("--color-warning-500"),
|
|
700: rgba("--color-warning-700"),
|
|
},
|
|
info: {
|
|
500: rgba("--color-info-500"),
|
|
700: rgba("--color-info-700"),
|
|
},
|
|
text: {
|
|
main: rgba("--color-text-main"),
|
|
muted: rgba("--color-text-muted"),
|
|
contrast: rgba("--color-text-contrast"),
|
|
alt2: rgba("--color-text-alt2"),
|
|
},
|
|
background: {
|
|
DEFAULT: rgba("--color-background"),
|
|
alt: rgba("--color-background-alt"),
|
|
alt2: rgba("--color-background-alt2"),
|
|
},
|
|
},
|
|
textColor: {
|
|
main: rgba("--color-text-main"),
|
|
muted: rgba("--color-text-muted"),
|
|
contrast: rgba("--color-text-contrast"),
|
|
alt2: rgba("--color-text-alt2"),
|
|
success: rgba("--color-success-500"),
|
|
danger: rgba("--color-danger-500"),
|
|
warning: rgba("--color-warning-500"),
|
|
info: rgba("--color-info-500"),
|
|
primary: {
|
|
300: rgba("--color-primary-300"),
|
|
500: rgba("--color-primary-500"),
|
|
700: rgba("--color-primary-700"),
|
|
},
|
|
},
|
|
ringOffsetColor: ({ theme }) => ({
|
|
DEFAULT: theme("colors.background"),
|
|
...theme("colors"),
|
|
}),
|
|
extend: {
|
|
width: {
|
|
"50vw": "50vw",
|
|
"75vw": "75vw",
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
};
|