Zephyr Core
Core TailwindCSS Configuration for Zephyr
Installation
With pnpm (recommended)
pnpm install autoprefixer postcss tailwindcss -D
pnpm install @kienleholdings/zephyr-core
With yarn
yarn add autoprefixer postcss tailwindcss -D
yarn add @kienleholdings/zephyr-core
With npm
npm install autoprefixer postcss tailwindcss -D
npm install @kienleholdings/zephyr-core
Setup
In order to set up Zephyr Core with your build system, we recommend checking out the official TailwindCSS installation instructions.
Usage
- Add
require('@kienleholdings/zephyr-core/zephyr-core.css');
to the top of the entry point of your application - Create a
tailwind.config.js
file in your project - Populate it with the following code:
const { createConfig } = require('@kienleholdings/zephyr-core');
const config = createConfig();
module.exports = config;
Customization
Want a different theme than the one provided? Want to override other Tailwind styles? Here's how:
const { createConfig } = require('@kienleholdings/zephyr-core');
const theme = {
colors: {
primary: {
DEFAULT: '#DC602E',
dark: '#C34715',
light: '#F67A48',
type: '#FFF',
},
secondary: {
DEFAULT: '#FFF',
dark: '#E6E6E6',
light: '#FFF',
type: '#444',
},
},
fontFamily: {
body: ['"Source Sans Pro"', 'sans-serif'],
display: ['"Oxygen"', 'sans-serif'],
},
};
const tailwindExtensions = {
borderRadius: {
halfRounded: '4px', // Let's add an optional 4px border radius
},
};
const tailwindOverrides = {
fontWeight: {
normal: '800', // We want ALL those fonts dummy thicc
},
};
// Each of these parameters are optional, you don't need any of them
const config = createConfig(theme, tailwindExtensions, tailwindOverrides);
module.exports = config;