-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from appsignal/upgradeDesignSystem
Update the design system
- Loading branch information
Showing
10 changed files
with
681 additions
and
340 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
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 |
---|---|---|
|
@@ -29,6 +29,7 @@ yarn-error.log* | |
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.env | ||
|
||
# vercel | ||
.vercel | ||
|
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,2 @@ | ||
@fortawesome:registry=https://npm.fontawesome.com/ | ||
//npm.fontawesome.com/:_authToken=${FONTAWESOME_TOKEN} |
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,3 +1,8 @@ | ||
const path = require("path"); | ||
module.exports = { | ||
reactStrictMode: true, | ||
webpack: (config) => { | ||
config.resolve.alias["react"] = path.resolve("./node_modules/react"); | ||
return config; | ||
}, | ||
}; |
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
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
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,4 @@ | ||
@import "tailwindcss/base"; | ||
@import "tailwindcss/components"; | ||
@import "tailwindcss/utilities"; | ||
@import "@appsignal-tools/design-system"; |
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,46 +1,8 @@ | ||
const enablePurgeCSS = | ||
process.env.NEXT_PURGE_CSS === "enabled" || | ||
process.env.NODE_ENV === "production"; | ||
|
||
module.exports = { | ||
plugins: [ | ||
"postcss-flexbugs-fixes", | ||
[ | ||
"postcss-preset-env", | ||
{ | ||
autoprefixer: { | ||
flexbox: "no-2009", | ||
}, | ||
stage: 3, | ||
features: { | ||
"custom-properties": false, | ||
}, | ||
}, | ||
], | ||
|
||
[ | ||
"@fullhuman/postcss-purgecss", | ||
enablePurgeCSS | ||
? { | ||
content: [ | ||
"./components/**/*.{js,ts,jsx,tsx}", | ||
"./data/**/*.{js,ts,jsx,tsx}", | ||
"./pages/**/*.{js,ts,jsx,tsx}", | ||
"./lib/**/*.{js,ts,jsx,tsx}", | ||
], | ||
safelist: [/fa(.*)/, /svg(.*)/, "hidden", "body", "html", /tippy/], | ||
deep: [/tippy/], | ||
defaultExtractor: (content) => { | ||
// Capture as liberally as possible, including things like `h-(screen-1.5)` | ||
const broadMatches = | ||
content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || []; | ||
// Capture classes within other delimiters like .block(class="w-1/2") in Pug | ||
const innerMatches = | ||
content.match(/[^<>"'`\s.()]*[^<>"'`\s.():]/g) || []; | ||
return broadMatches.concat(innerMatches); | ||
}, | ||
} | ||
: false, | ||
], | ||
], | ||
plugins: { | ||
"postcss-url": {}, | ||
"postcss-import": {}, | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
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,9 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: ["./**/*.{js, jsx}"], | ||
theme: { | ||
extend: {}, | ||
}, | ||
presets: [require("@appsignal-tools/design-system/tailwind.config")], | ||
plugins: [require("@tailwindcss/typography")], | ||
}; |
Oops, something went wrong.