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

[Feature?]: add cerberusConfig helper #216

Closed
2 tasks done
caseybaggz opened this issue Jun 27, 2024 · 0 comments · Fixed by #522
Closed
2 tasks done

[Feature?]: add cerberusConfig helper #216

caseybaggz opened this issue Jun 27, 2024 · 0 comments · Fixed by #522
Assignees
Labels
enhancement New feature or request

Comments

@caseybaggz
Copy link
Collaborator

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Summary 💡

In order to make extending Cerberus easier, we should convert the cerberusConfig to a function helper that accepts a new config that will merge the provided options with the Cerb config on the users behalf. Passing no params will just use the default config we are already providing.

Examples 🌈

export default defineConfig({
  ...cerberusConfig({
        theme: {
            semanticTokens: {...some new tokens with a new theme or something}
            keyframes,
            whatever
        }
    }),

  include: [
    './node_modules/@cerberus/react/src/**/*.{ts,tsx}',
    './app/**/*.{ts,tsx}', // <- Make sure this path is to your project
  ],
  exclude: [],

  presets: [pandaPreset, cerberusPreset],
})

Motivation 🔦

No response

@caseybaggz caseybaggz added the enhancement New feature or request label Jun 27, 2024
@caseybaggz caseybaggz self-assigned this Sep 26, 2024
@caseybaggz caseybaggz linked a pull request Sep 27, 2024 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant