Skip to content

Commit

Permalink
refactor: Pico v2 customized design system
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslarroche committed Jan 21, 2024
1 parent 483af1d commit 777906d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
12 changes: 10 additions & 2 deletions v2-sass-customized-design-system/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="color-scheme" content="light dark" />
<title>Customized design system • Pico CSS</title>
<meta name="description" content="A pure HTML example, without dependencies." />
<meta name="description" content="An example to customize Pico CSS with SASS." />
<link rel="stylesheet" href="css/main.css" />
</head>

Expand Down Expand Up @@ -91,6 +91,14 @@
<button type="submit">Send</button>
</form>
</main>
<footer>
<small
>Built with <a href="https://picocss.com">Pico</a>
<a href="https://github.com/picocss/examples/tree/master/v2-sass-customized-design-system/"
>Source code</a
></small
>
</footer>
<script src="js/main.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
@use "settings" as *;

body {
> main {
> main,
> footer {
max-width: map.get(map.get($breakpoints, "md"), "viewport");
margin-inline: auto;
}

> main {
svg {
display: block;
width: 4rem;
Expand All @@ -13,14 +18,10 @@ body {
}

form {
max-width: map.get(map.get($breakpoints, "md"), "viewport");
margin-inline: auto;

label {
color: var(#{$css-var-prefix}muted-color);
}


:last-child {
margin-bottom: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion v2-sass-customized-design-system/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
@use "theme/schemes";

// Layout
@use "layout/main";
@use "layout/body";

// Custom components
@use "components/input-amount";
Expand Down

0 comments on commit 777906d

Please sign in to comment.