diff options
| author | Tomas Bankauskas <tbdizainas@gmail.com> | 2024-04-04 15:23:09 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-04 15:23:09 +0300 |
| commit | 4df0e4a754ea5e1fb0d05a4e08a53cd49e9fce16 (patch) | |
| tree | d695b3f987ccf7113ba73b467a94082457be63ea /tailwind.config.mjs | |
| parent | 5c66b0550a6e3bd6b558da4229bcb6be2d9244f6 (diff) | |
Added Daisy UI and basic components (#3)
* added daisyui
* added Footer.astro
* updated Header.astro, added Card.astro, etc
* small adjustments
Diffstat (limited to 'tailwind.config.mjs')
| -rw-r--r-- | tailwind.config.mjs | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/tailwind.config.mjs b/tailwind.config.mjs index 19f0614..507c93e 100644 --- a/tailwind.config.mjs +++ b/tailwind.config.mjs @@ -1,8 +1,35 @@ /** @type {import('tailwindcss').Config} */ +const colors = require('tailwindcss/colors'); +const defaultTheme = require('tailwindcss/defaultTheme'); + export default { content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'], - theme: { - extend: {}, - }, - plugins: [], + theme: { + extend: { + backgroundImage: { + 'grid-pattern': "linear-gradient(to bottom, theme('colors.neutral.950 / 0%'), theme('colors.neutral.950 / 100%')), url('/images/noise.png')" + }, + colors: { + neutral: colors.neutral + }, + fontFamily: { + sans: ['Inter', ...defaultTheme.fontFamily.sans] + } + } + }, + daisyui: { + themes: [ + { + lofi: { + ...require('daisyui/src/theming/themes')['lofi'], + primary: '#2bdcd2', + 'primary-content': '#171717', + secondary: '#016968', + info: '#2bdcd2', + 'info-content': '#171717', + } + } + ] + }, + plugins: [require('daisyui')], } |
