Skip to content

Commit

Permalink
Update tailwind to ts
Browse files Browse the repository at this point in the history
  • Loading branch information
augustuswm committed Dec 16, 2024
1 parent 25074f3 commit d9d7ecb
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions tailwind.config.js → tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,17 @@
* Copyright Oxide Computer Company
*/

// @ts-check
import plugin from 'tailwindcss/plugin'

/** @type {import('tailwindcss/lib/util/createPlugin').default} */
// @ts-ignore
const plugin = require('tailwindcss/plugin')
const {
import {
textUtilities,
colorUtilities,
borderRadiusTokens,
elevationUtilities,
} = require('@oxide/design-system/styles/dist/tailwind-tokens')
} from '@oxide/design-system/styles/dist/tailwind-tokens'

/** @type {import('tailwindcss/tailwind-config').TailwindConfig} */
module.exports = {
import { type Config } from 'tailwindcss'
export default {
corePlugins: {
fontFamily: false,
fontSize: true,
Expand Down Expand Up @@ -85,4 +82,4 @@ module.exports = {
translate: ['group-hover'],
},
},
}
} satisfies Config

0 comments on commit d9d7ecb

Please sign in to comment.