diff options
| author | Elad Rosenheim <eladroz@users.noreply.github.com> | 2024-04-23 17:55:24 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-23 17:55:24 +0300 |
| commit | 7e40aa188979311e706154dfcf52e47975f99cde (patch) | |
| tree | 1368cc922524b5b1eb7eef4684fccab0fbc3628d /tailwind.config.mjs | |
| parent | 5396de306695226c939384598410761297739fef (diff) | |
Revalidation & Blobs pages, tweaks (#8)
* added blobs.astro page
* updated blobs
* updated index.astro and npm dependencies
* updated api blobs
* Revalidation example WIP
* Revalidation by tag example
* Update revalidation.astro
* Image CDN fixes
* Text fixes
* updated colors (#9)
* updated colors
* updated README.md
* updated Layout.astro bg color
* updated template colors
* Inline Inter font
* Inline noise.png
* Remove remaining "Astro.js"
---------
Co-authored-by: TomasBankauskas <tbdizainas@gmail.com>
Diffstat (limited to 'tailwind.config.mjs')
| -rw-r--r-- | tailwind.config.mjs | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/tailwind.config.mjs b/tailwind.config.mjs index 87a222b..7f520ee 100644 --- a/tailwind.config.mjs +++ b/tailwind.config.mjs @@ -1,13 +1,17 @@ /** @type {import('tailwindcss').Config} */ const colors = require('tailwindcss/colors'); const defaultTheme = require('tailwindcss/defaultTheme'); +const fs = require('fs'); + +const noiseBitmap = fs.readFileSync('./public/images/noise.png', { encoding: 'base64' }); +const noiseDataUri = 'data:image/png;base64,' + noiseBitmap; export default { - content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'], + content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'], theme: { extend: { backgroundImage: { - 'grid-pattern': "linear-gradient(to bottom, theme('colors.neutral.950 / 0%'), theme('colors.neutral.950 / 100%')), url('/images/noise.png')" + 'grid-pattern': `linear-gradient(to bottom, theme('colors.neutral.950 / 0%'), theme('colors.neutral.950 / 100%')), url('${noiseDataUri}')` }, colors: { neutral: colors.neutral @@ -22,14 +26,14 @@ export default { { lofi: { ...require('daisyui/src/theming/themes')['lofi'], - primary: '#fbb13d', - 'primary-content': '#171717', - secondary: '#0f766e', - info: '#fbb13d', - 'info-content': '#171717', + primary: '#F67280', + 'primary-content': '#1f1f1f', + secondary: '#C06C84', + info: '#F67280', + 'info-content': '#1f1f1f' } } ] }, - plugins: [require('daisyui')], -} + plugins: [require('daisyui')] +}; |
