[core/tailwind.config.js][xs]: add basic Flowershow tailwind config
This commit is contained in:
parent
09f0c18b66
commit
75fa429261
@ -1,16 +1,44 @@
|
|||||||
const { createGlobPatternsForDependencies } = require('@nrwl/next/tailwind');
|
const { createGlobPatternsForDependencies } = require('@nrwl/next/tailwind');
|
||||||
const { join } = require('path');
|
const { join } = require('path');
|
||||||
|
// const defaultTheme = require("tailwindcss/defaultTheme");
|
||||||
|
const colors = require("tailwindcss/colors");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
content: [
|
content: [
|
||||||
join(__dirname, './src/**/*.{js,ts,jsx,tsx}'),
|
join(__dirname, './src/**/*.{js,ts,jsx,tsx}'),
|
||||||
...createGlobPatternsForDependencies(__dirname),
|
...createGlobPatternsForDependencies(__dirname),
|
||||||
],
|
],
|
||||||
|
darkMode: "class",
|
||||||
theme: {
|
theme: {
|
||||||
extend: {},
|
extend: {
|
||||||
|
// support wider width for large screens >1440px eg. in hero
|
||||||
|
maxWidth: {
|
||||||
|
"8xl": "88rem",
|
||||||
|
},
|
||||||
|
// fontFamily: {
|
||||||
|
// sans: ["ui-sans-serif", ...defaultTheme.fontFamily.sans],
|
||||||
|
// serif: ["ui-serif", ...defaultTheme.fontFamily.serif],
|
||||||
|
// mono: ["ui-monospace", ...defaultTheme.fontFamily.mono],
|
||||||
|
// headings: ["-apple-system", ...defaultTheme.fontFamily.sans],
|
||||||
|
// },
|
||||||
|
colors: {
|
||||||
|
background: {
|
||||||
|
DEFAULT: colors.white,
|
||||||
|
dark: colors.slate[900],
|
||||||
|
},
|
||||||
|
primary: {
|
||||||
|
DEFAULT: colors.gray[700],
|
||||||
|
dark: colors.gray[300],
|
||||||
|
},
|
||||||
|
secondary: {
|
||||||
|
DEFAULT: colors.sky[400],
|
||||||
|
dark: colors.sky[400],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
variants: {
|
/* eslint global-require: off */
|
||||||
extend: {},
|
// plugins: [
|
||||||
},
|
// require("@tailwindcss/typography")
|
||||||
plugins: [],
|
// ],
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user