Skip to content

Commit ced6a4c

Browse files
Docs: panda-preset-framework-simplecss Preflight Clarification (#12)
* Docs: Add preflight clarification to simplecss preset docs. * Add changeset
1 parent 66cbd67 commit ced6a4c

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.changeset/purple-snails-change.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"@amandaguthrie/panda-preset-framework-simplecss": minor
3+
---
4+
5+
<br>
6+
7+
### 🆕 Adds
8+
- New preset for using [Simple.css](https://github.com/kevquirk/simple.css) with Panda CSS.
9+
- The preset allows configuration of colors and fonts.
10+
11+
12+

packages/panda-preset-framework-simplecss/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,27 @@ bun add -D @amandaguthrie/panda-preset-framework-simplecss
5050
In your `panda.config.{ts,js}` file, import the preset and include it in your presets list. This preset does rely on
5151
the default settings of @pandacss/preset-base as a dependency.
5252

53+
>[!CAUTION]
54+
> It is important to set `preflight` to `false`. Simple.css has its own reset and there will be undesirable effects to margins, heading spacing, etc. if preflight is enabled.
55+
5356
> [!TIP]
5457
> If you don't currently have any presets in your config file, add
5558
> `@pandacss/preset-base` to the array.
5659
5760
```typescript
5861
import { defineConfig } from '@pandacss/dev';
62+
import presetBase from "@pandacss/preset-base";
5963
import simpleCssPreset, { type BreakpointsPresetOptions } from '@amandaguthrie/panda-preset-framework-simplecss';
6064

6165
const simpleCssConfig: SimpleCssPresetOptions = {
6266
prefix: "simplecss"
6367
};
6468

6569
export default defineConfig({
70+
preflight: false,
6671
// ...
6772
presets: [
73+
presetBase,
6874
// ... Other presets
6975
simpleCssPreset(simpleCssConfig),
7076
],
@@ -171,11 +177,14 @@ Panda CSS `Preset`
171177

172178
```typescript
173179
import { defineConfig } from '@pandacss/dev';
180+
import presetBase from "@pandacss/preset-base";
174181
import simpleCssPreset from '@amandaguthrie/panda-preset-frameworks-simplecss';
175182

176183
export default defineConfig({
184+
preflight: false,
177185
// ...
178186
presets: [
187+
presetBase,
179188
// ... Other presets
180189
simpleCssPreset({ colors: { red: { 2: { value: "#EC8E7B" }, 3: { value: "#E54D2E" } } } }),
181190
],
@@ -206,9 +215,11 @@ const defaultPresetReturn = {
206215

207216
```typescript
208217
import { defineConfig } from '@pandacss/dev';
218+
import presetBase from "@pandacss/preset-base";
209219
import simpleCssPreset from '@amandaguthrie/panda-preset-frameworks-simplecss';
210220

211221
export default defineConfig({
222+
preflight: false,
212223
// ...
213224
theme: {
214225
extend: {
@@ -222,6 +233,7 @@ export default defineConfig({
222233
}
223234
},
224235
presets: [
236+
presetBase,
225237
// ... Other presets
226238
simpleCssPreset(),
227239
],

0 commit comments

Comments
 (0)