tailwind.config.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /**
  2. * Copyright (c) Meta Platforms, Inc. and affiliates.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. import tailwindCSSTypography from '@tailwindcss/typography';
  17. import daisyui from 'daisyui';
  18. import * as daisyColorThemes from 'daisyui/src/theming/themes';
  19. /** @type {import('tailwindcss').Config} */
  20. export default {
  21. content: [
  22. './index.html',
  23. './src/**/*.{js,ts,jsx,tsx}',
  24. 'node_modules/daisyui/dist/**/*.js',
  25. 'node_modules/react-daisyui/dist/**/*.js',
  26. ],
  27. daisyui: {
  28. styled: true,
  29. themes: [
  30. {
  31. light: {
  32. ...daisyColorThemes['[data-theme=light]'],
  33. 'base-100': '#FFFFFF',
  34. 'base-200': '#F1F4F7',
  35. 'base-300': '#DEE3E9',
  36. primary: '#0064E0',
  37. 'primary-content': '#FFFFFF',
  38. secondary: '#0F191E',
  39. 'secondary-content': '#FFFFFF',
  40. accent: '#6441D2',
  41. 'accent-content': '#FFFFFF',
  42. info: '#009B9B',
  43. 'info-content': '#FFFFFF',
  44. success: '#0F9B14',
  45. 'success-content': '#FFFFFF',
  46. warning: '#FA8719',
  47. 'warning-content': '#FFFFFF',
  48. error: '#C80A28',
  49. 'error-content': '#FFFFFF',
  50. '--rounded-box': '0.35rem', // border radius rounded-box utility class, used in card and other large boxes
  51. '--rounded-btn': '0.35rem', // border radius rounded-btn utility class, used in buttons and similar element
  52. '--rounded-badge': '1rem', // border radius rounded-badge utility class, used in badges and similar
  53. },
  54. },
  55. 'dark',
  56. ],
  57. },
  58. theme: {
  59. fontSize: {
  60. xs: ['0.75rem', {lineHeight: '1.5'}],
  61. sm: ['0.875rem', {lineHeight: '1.5'}],
  62. base: ['1rem', {lineHeight: '1.5'}],
  63. lg: ['1.125rem', {lineHeight: '1.2', fontWeight: 500}],
  64. xl: ['1.25rem', {lineHeight: '1.2', fontWeight: 500}],
  65. '2xl': [
  66. '1.5rem',
  67. {lineHeight: '1.2', fontWeight: 500, letterSpacing: '0.005rem'},
  68. ],
  69. '3xl': [
  70. '2.25rem',
  71. {lineHeight: '1.2', fontWeight: 500, letterSpacing: '0.01rem'},
  72. ],
  73. '4xl': [
  74. '3rem',
  75. {lineHeight: '1.2', fontWeight: 500, letterSpacing: '0.016rem'},
  76. ],
  77. '5xl': [
  78. '4rem',
  79. {lineHeight: '1.2', fontWeight: 400, letterSpacing: '0.016rem'},
  80. ],
  81. '6xl': [
  82. '5rem',
  83. {lineHeight: '1.2', fontWeight: 400, letterSpacing: '0.016rem'},
  84. ],
  85. },
  86. extend: {
  87. colors: {
  88. graydark: {
  89. 50: '#f1f4f7',
  90. 100: '#DEE3E9',
  91. 200: '#CBD2D9',
  92. 300: '#A7B3BF',
  93. 400: '#8595A4',
  94. 500: '#667788',
  95. 600: '#465A69',
  96. 700: '#343845',
  97. 800: '#1A1C1F',
  98. 900: '#0F191E',
  99. },
  100. },
  101. lineHeight: {
  102. tight: 1.2,
  103. },
  104. backgroundImage: {
  105. dot: 'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IArs4c6QAAABdJREFUGBljYGBg+A/FQAoTMGEKDUcRAATwAgFGIXEOAAAAAElFTkSuQmCC)',
  106. },
  107. keyframes: {
  108. wiggle: {
  109. '0%, 100%': {transform: 'rotate(-3deg)'},
  110. '50%': {transform: 'rotate(3deg)'},
  111. },
  112. },
  113. animation: {
  114. wiggle: 'wiggle .25s ease-in-out',
  115. },
  116. typography: {
  117. DEFAULT: {
  118. css: {
  119. maxWidth: '100%', // add required value here
  120. a: {
  121. textDecoration: 'none',
  122. },
  123. },
  124. },
  125. },
  126. },
  127. },
  128. plugins: [tailwindCSSTypography, daisyui],
  129. };