Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tailwind to ts #89

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions tailwind.config.js → tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,16 @@
* Copyright Oxide Computer Company
*/

// @ts-check

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

Check failure on line 14 in tailwind.config.ts

View workflow job for this annotation

GitHub Actions / ci

Could not find a declaration file for module '@oxide/design-system/styles/dist/tailwind-tokens'. '/home/runner/work/rfd-site/rfd-site/node_modules/@oxide/design-system/styles/dist/tailwind-tokens.js' implicitly has an 'any' type.
import { type Config } from 'tailwindcss'
import plugin from 'tailwindcss/plugin'

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