-
Notifications
You must be signed in to change notification settings - Fork 993
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Daniel Choudhury <dannychoudhury@gmail.com>
- Loading branch information
Showing
4 changed files
with
80 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.icloud | ||
.cosine | ||
.idea | ||
.DS_Store | ||
node_modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
packages/cli/src/commands/setup/ui/templates/mantine-postcss.config.js.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* `postcss-preset-mantine` includes the following PostCSS plugins: | ||
* - postcss-nested | ||
* - postcss-mixins with Mantine specific mixins | ||
* - Custom plugin with em/rem functions | ||
* Read more: https://mantine.dev/styles/postcss-preset/ | ||
|
||
* `postcss-simple-vars` enables use of SCSS-like variables inside CSS files: | ||
* ```postcss | ||
* $blue : #056ef0; | ||
* $width-sm: rem(37.5); | ||
* $selector: .my-component | ||
* | ||
* @media (min-width: $width-sm) { | ||
* $selector { | ||
* background: $blue; | ||
* } | ||
* } | ||
* ``` | ||
* Read more: https://github.com/postcss/postcss-simple-vars | ||
*/ | ||
module.exports = { | ||
plugins: [ | ||
require('postcss-preset-mantine'), | ||
require('postcss-simple-vars')({ | ||
variables: { | ||
'mantine-breakpoint-xs': '36em', | ||
'mantine-breakpoint-sm': '48em', | ||
'mantine-breakpoint-md': '62em', | ||
'mantine-breakpoint-lg': '75em', | ||
'mantine-breakpoint-xl': '88em', | ||
}, | ||
}), | ||
], | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/cli/src/commands/setup/ui/templates/mantine.storybook.preview.js.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters