This package provides shared UI components, utils and presets.
Add the ui-core
package to your workspace dependencies.
pnpm --filter [workspace] add @template-react/ui-core
Then use the preset in your tailwind.config
file.
import path from 'node:path';
import { defaultPreset } from '@template-react/ui-core';
export default {
presets: [defaultPreset],
content: [
path.join(path.dirname(require.resolve('@template-react/ui-core')), '*.js'),
],
};
# run development server
turbo dev --filter ui-core
# build workspace
turbo build --filter ui-core
# lint workspace
turbo lint --filter ui-core
# test workspace
turbo test --filter ui-core
# test workspace with coverage check
turbo test:coverage --filter ui-core
# test workspace with browser UI
turbo test:ui --filter ui-core
# test workspace with type check
turbo test:types --filter ui-core
Note More information about filtering: https://turborepo.org/docs/core-concepts/filtering