forked from MetaMask/metamask-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
27 lines (26 loc) · 983 Bytes
/
tailwind.config.js
File metadata and controls
27 lines (26 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const { brandColor } = require('@metamask/design-tokens');
/** @type {import('tailwindcss').Config} */
module.exports = {
presets: [
// eslint-disable-next-line node/global-require
require('@metamask/design-system-tailwind-preset'),
],
content: [
'./ui/**/*.{js,jsx,ts,tsx}',
// Ensures tailwind classnames are generated for design system components
'./node_modules/@metamask/design-system-react/**/*.{mjs,cjs}',
],
theme: {
// Keep essential semantic colors, remove default palette colors. We want to rely on the colors provided by @metamask-previews/design-system-tailwind-preset
colors: {
inherit: 'inherit',
current: 'currentColor',
transparent: 'transparent',
black: brandColor.black,
white: brandColor.white,
},
fontSize: {}, // This removes all default Tailwind font sizes. We want to rely on the design system font sizes and enforce use of the Text component
extend: {},
},
plugins: [],
};