ぼざクリ タグ広場 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.
 
 
 
 
 
 

37 lines
1.0 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}'],
  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. },
  18. colors: {
  19. red: {
  20. 925: '#5f1414',
  21. 975: '#230505',
  22. }
  23. },
  24. keyframes: {
  25. 'rainbow-scroll': {
  26. '0%': { backgroundPosition: '0% 50%' },
  27. '100%': { backgroundPosition: '200% 50%' },
  28. },
  29. },
  30. }
  31. },
  32. plugins: [],
  33. } satisfies Config