From 4df0e4a754ea5e1fb0d05a4e08a53cd49e9fce16 Mon Sep 17 00:00:00 2001 From: Tomas Bankauskas Date: Thu, 4 Apr 2024 15:23:09 +0300 Subject: Added Daisy UI and basic components (#3) * added daisyui * added Footer.astro * updated Header.astro, added Card.astro, etc * small adjustments --- tailwind.config.mjs | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) (limited to 'tailwind.config.mjs') 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')], } -- cgit v1.2.3