Skip to content

Commit

Permalink
👽 import every carbon icon and delete unused
Browse files Browse the repository at this point in the history
  • Loading branch information
olgam4 committed Oct 3, 2022
1 parent 1c95aa6 commit 13627c1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"solid-testing-library": "0.3.0",
"solid-toast": "0.3.5",
"tailwindcss": "3.1.8",
"tailwindcss-plugin-icons": "1.0.7",
"tailwindcss-plugin-icons": "2.0.2",
"taze": "0.8.2",
"typescript": "4.8.4",
"unplugin-auto-import": "0.11.2",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 18 additions & 10 deletions tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
const { Icons } = require('tailwindcss-plugin-icons')

const carbon = require('@iconify-json/carbon/icons.json')

/**
* @type {import('tailwindcss-plugin-icons').Options}
*/
const options = () => ({
carbon,
})

/**
* @type {import('tailwindcss').Config}
*/
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx}'],
content: ['./src/**/*.{js,jsx,ts,tsx}'],
darkMode: 'class',
theme: {
extend: {},
},
plugins: [
Icons({
carbon: {
icons: ['sun', 'moon', 'language', 'arrow-left', 'arrow-right', 'location-hazard', 'logo-github', 'moonrise', 'face-dissatisfied-filled', 'phone-voice']
}
}),
theme: {
extend: {},
},
plugins: [
Icons(options),
],
}

0 comments on commit 13627c1

Please sign in to comment.