ぼざクリ タグ広場 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.3 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. colors: {
  18. red: { 925: '#5f1414',
  19. 975: '#230505' } },
  20. keyframes: {
  21. 'rainbow-scroll': {
  22. '0%': { backgroundPosition: '0% 50%' },
  23. '100%': { backgroundPosition: '200% 50%' } } },
  24. fontFamily: {
  25. jpSans: ['Noto Sans JP',
  26. 'Hiragino Kaku Gothic ProN',
  27. 'ヒラギノ角ゴ ProN W3',
  28. 'Yu Gothic',
  29. '游ゴシック体',
  30. 'Meiryo',
  31. 'sans-serif'],
  32. jpSerif: ['Noto Serif JP',
  33. 'Hiragino Mincho ProN',
  34. 'ヒラギノ明朝 ProN W3',
  35. 'Yu Mincho',
  36. '游明朝',
  37. 'MS PMincho',
  38. 'serif'] } } },
  39. plugins: [] } satisfies Config