Skip to content

Commit

Permalink
fix(theme): rename mochi to consolelabs (#116)
Browse files Browse the repository at this point in the history
* fix(theme): rename mochi to consolelabs

* chore: missing update

* chore: wrong replace
  • Loading branch information
zlatanpham authored Nov 10, 2023
1 parent 0acb1b9 commit 6ef97ce
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/slimy-cameras-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@consolelabs/theme': patch
---

Rename tailwind config export from "mochi" to "consolelabs"
4 changes: 2 additions & 2 deletions apps/mochi-web/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line import/no-import-module-exports
import { mochi } from 'tailwind-config/plugin'
import { consolelabs } from 'tailwind-config/plugin'

module.exports = {
content: [
Expand Down Expand Up @@ -153,5 +153,5 @@ module.exports = {
},
},
},
plugins: [mochi()],
plugins: [consolelabs()],
}
8 changes: 4 additions & 4 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ Tailwind CSS. Then you need to add the following code to your

```js
// tailwind.config.js
import { mochi } from '@consolelabs/theme'
import { consolelabs } from '@consolelabs/core'

/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
// ...
'./node_modules/@consolelabs/theme/src/components/**/*.{js,jsx,ts,tsx}',
],
plugins: [mochi()],
plugins: [consolelabs()],
}
```

Expand Down Expand Up @@ -89,7 +89,7 @@ to your `tailwind.config.js` file:

```js
// tailwind.config.js
import { mochi } from '@consolelabs/theme'
import { consolelabs } from '@consolelabs/theme'

/** @type {import('tailwindcss').Config} */
module.exports = {
Expand All @@ -99,7 +99,7 @@ module.exports = {
// or you can use a glob pattern (multiple component styles)
'./node_modules/@consolelabs/theme/dist/components/(button|snippet|code|input).js',
],
plugins: [mochi()],
plugins: [consolelabs()],
}
```

Expand Down
4 changes: 2 additions & 2 deletions packages/storybook/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { mochi } from '@consolelabs/theme'
import { consolelabs } from '@consolelabs/theme'

module.exports = {
content: [
// '../components/*/src/**/*.{js,jsx,ts,tsx}',
'../components/*/stories/**/*.stories.{js,jsx,ts,tsx}',
'../theme/src/components/**/*.{js,jsx,ts,tsx}',
],
plugins: [mochi()],
plugins: [consolelabs()],
}
2 changes: 1 addition & 1 deletion packages/tailwind-config/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import plugin from 'tailwindcss/plugin.js'
import config from './tailwind.config'

export const mochi = () => plugin(() => {}, config)
export const consolelabs = () => plugin(() => {}, config)
2 changes: 1 addition & 1 deletion packages/theme/src/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import plugin from 'tailwindcss/plugin.js'

export const mochi = () =>
export const consolelabs = () =>
plugin(() => {}, {
theme: {
extend: {
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// tailwind config is required for editor support
import type { Config } from 'tailwindcss'
import { mochi } from 'tailwind-config/plugin'
import { consolelabs } from 'tailwind-config/plugin'

const config: Pick<Config, 'prefix' | 'presets' | 'theme' | 'plugins'> = {
theme: {},
plugins: [mochi()],
plugins: [consolelabs()],
}

export default config

1 comment on commit 6ef97ce

@vercel
Copy link

@vercel vercel bot commented on 6ef97ce Nov 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

websites-mochi – ./apps/mochi-web

websites-mochi-consolelabs.vercel.app
websites-mochi-git-main-consolelabs.vercel.app
websites-mochi.vercel.app
beta.mochi.gg

Please sign in to comment.