Browse Source

Update to v0.43.0

Angel Ruiz (aka SirKeldon) 1 năm trước cách đây
mục cha
commit
e396140f8e
2 tập tin đã thay đổi với 12 bổ sung33 xóa
  1. 1 1
      package.json
  2. 11 32
      tailwind.preset.js

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "circletone",
-  "version": "0.42.0",
+  "version": "0.43.0",
   "peerDependencies": {
     "@angular/common": "^17.3.0",
     "@angular/core": "^17.3.0"

+ 11 - 32
tailwind.preset.js

@@ -1,33 +1,17 @@
 var colors = require('tailwindcss/colors');
-var plugin = require('tailwindcss/plugin');
-var customThemePlugin = plugin.withOptions(
-  function (options) {
-    return function ({ addUtilities, theme }) {
-      const newColors = options.colors || theme('colors');
-      const newFontFamily = options.fontFamily || theme('fontFamily');
-
-      addUtilities({
-        '.custom-color': { color: newColors.primary.DEFAULT },
-        '.custom-font': { fontFamily: newFontFamily.primary },
-      });
-    };
-  },
-  function (options) {
-    return {
-      theme: {
-        colors: options.colors,
-        fontFamily: options.fontFamily,
-      },
-    };
-  }
-);
 
 /** @type {import('tailwindcss').Config} */
 
 module.exports = {
-  plugins: [
-    require('tailwindcss/colors'),
-    customThemePlugin({
+  plugins: [require('tailwindcss/colors')],
+  theme: {
+    extend: {
+      darkMode: 'class',
+      fontFamily: {
+        primary: 'var(--font-primary)',
+        title: 'var(--font-title)',
+        logo: 'var(--font-logo)',
+      },
       colors: {
         ...colors,
         primary: {
@@ -75,11 +59,6 @@ module.exports = {
           'surface-variation-dark': 'rgb(var(--on-surface-variation-dark) / <alpha-value>)',
         },
       },
-      fontFamily: {
-        primary: 'var(--font-primary)',
-        title: 'var(--font-title)',
-        logo: 'var(--font-logo)',
-      },
-    }),
-  ],
+    },
+  },
 };