ぼざクリタグ広場 https://hub.nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

43 lines
1.6 KiB

  1. /** @type {import('tailwindcss').Config} */
  2. import type { Config } from 'tailwindcss'
  3. import { DARK_COLOUR_SHADE,
  4. LIGHT_COLOUR_SHADE,
  5. TAG_COLOUR } from './src/consts'
  6. const colours = Object.values (TAG_COLOUR)
  7. export default {
  8. content: ['./src/**/*.{html,js,ts,jsx,tsx,mdx}'],
  9. safelist: [...colours.map (c => `text-${ c }-${ LIGHT_COLOUR_SHADE }`),
  10. ...colours.map (c => `hover:text-${ c }-${ LIGHT_COLOUR_SHADE - 200 }`),
  11. ...colours.map (c => `dark:text-${ c }-${ DARK_COLOUR_SHADE }`),
  12. ...colours.map (c => `dark:hover:text-${ c }-${ DARK_COLOUR_SHADE - 200 }`)],
  13. theme: {
  14. extend: {
  15. animation: {
  16. 'rainbow-scroll': 'rainbow-scroll .25s linear infinite' },
  17. colors: {
  18. red: { 925: '#5f1414',
  19. 975: '#230505' },
  20. border: 'hsl(var(--border))',
  21. input: 'hsl(var(--input))',
  22. ring: 'hsl(var(--ring))',
  23. background: 'hsl(var(--background))',
  24. foreground: 'hsl(var(--foreground))',
  25. primary: { DEFAULT: 'hsl(var(--primary))',
  26. foreground: 'hsl(var(--primary-foreground))' },
  27. secondary: { DEFAULT: 'hsl(var(--secondary))',
  28. foreground: 'hsl(var(--secondary-foreground))' },
  29. destructive: { DEFAULT: 'hsl(var(--destructive))',
  30. foreground: 'hsl(var(--destructive-foreground))' },
  31. muted: { DEFAULT: 'hsl(var(--muted))',
  32. foreground: 'hsl(var(--muted-foreground))' },
  33. accent: { DEFAULT: 'hsl(var(--accent))',
  34. foreground: 'hsl(var(--accent-foreground))' } },
  35. keyframes: {
  36. 'rainbow-scroll': {
  37. '0%': { backgroundPosition: '0% 50%' },
  38. '100%': { backgroundPosition: '200% 50%' } } } } },
  39. plugins: [require ('@tailwindcss/typography')] } satisfies Config