2022-10-22 15:39:36 +07:00
|
|
|
|
@use "sass:map";
|
|
|
|
|
|
2022-10-23 10:47:50 +07:00
|
|
|
|
// Settings
|
2019-11-27 15:31:49 +07:00
|
|
|
|
// ––––––––––––––––––––
|
|
|
|
|
|
2024-01-06 21:09:13 +07:00
|
|
|
|
// Theme color
|
|
|
|
|
$theme-color: "azure" !default; // amber, azure, blue, cyan, fuchsia, green, grey, indigo, jade, lime, orange, pink, pumpkin, purple, red, sand, slate, violet, yellow, zinc
|
|
|
|
|
|
2022-10-22 13:11:51 +07:00
|
|
|
|
// Prefix for CSS variables
|
2023-12-28 13:21:52 +07:00
|
|
|
|
$css-var-prefix: "--pico-" !default; // Must start with "--"
|
2022-10-22 13:11:51 +07:00
|
|
|
|
|
2022-10-23 10:47:50 +07:00
|
|
|
|
// Define the root element used to target <header>, <main>, <footer>
|
|
|
|
|
// with $enable-semantic-container and $enable-responsive-spacings
|
2022-10-02 16:45:28 +07:00
|
|
|
|
$semantic-root-element: "body" !default;
|
|
|
|
|
|
|
|
|
|
// Enable <header>, <main>, <footer> inside $semantic-root-element as containers
|
2019-11-27 15:31:49 +07:00
|
|
|
|
$enable-semantic-container: false !default;
|
|
|
|
|
|
2022-10-23 10:47:50 +07:00
|
|
|
|
// Enable a centered viewport for <header>, <main>, <footer> inside $semantic-root-element
|
2019-11-27 15:31:49 +07:00
|
|
|
|
// Fluid layout if disabled
|
|
|
|
|
$enable-viewport: true !default;
|
|
|
|
|
|
2024-01-22 10:02:17 +07:00
|
|
|
|
// Enable responsive spacings for <header>, <main>, <footer>, <section>, <article>
|
2024-01-22 21:32:26 +07:00
|
|
|
|
// Fixed spacings by default
|
2024-01-22 10:02:17 +07:00
|
|
|
|
$enable-responsive-spacings: false !default;
|
|
|
|
|
|
2019-11-27 15:31:49 +07:00
|
|
|
|
// Enable responsive typography
|
2022-10-22 15:39:36 +07:00
|
|
|
|
// Fixed root element size (rem) if disabled
|
2019-11-27 15:31:49 +07:00
|
|
|
|
$enable-responsive-typography: true !default;
|
|
|
|
|
|
|
|
|
|
// Enable .classes
|
|
|
|
|
// .classless version if disabled
|
|
|
|
|
$enable-classes: true !default;
|
|
|
|
|
|
2021-07-02 16:54:41 +07:00
|
|
|
|
// Enable transitions
|
2019-12-02 23:22:13 +07:00
|
|
|
|
$enable-transitions: true !default;
|
|
|
|
|
|
2021-07-02 16:54:41 +07:00
|
|
|
|
// Enable overriding with !important
|
2020-09-25 09:10:04 +07:00
|
|
|
|
$enable-important: true !default;
|
|
|
|
|
|
2024-01-25 01:42:54 +07:00
|
|
|
|
// Optional parent selector
|
|
|
|
|
// If defined, all HTML tags are wrapped with this selector
|
|
|
|
|
// :root is not wrapped
|
|
|
|
|
$parent-selector: "" !default;
|
|
|
|
|
|
2022-10-22 15:39:36 +07:00
|
|
|
|
// Breakpoints, viewports and root font size
|
|
|
|
|
$breakpoints: () !default;
|
|
|
|
|
$breakpoints: map.deep-merge(
|
|
|
|
|
(
|
2022-10-23 10:47:50 +07:00
|
|
|
|
// Small (landscape phones)
|
2023-02-20 23:44:33 +07:00
|
|
|
|
// Font size: 17px
|
2022-10-23 10:47:50 +07:00
|
|
|
|
sm:
|
|
|
|
|
(
|
|
|
|
|
breakpoint: 576px,
|
|
|
|
|
viewport: 510px,
|
2023-02-13 20:19:54 +07:00
|
|
|
|
root-font-size: 106.25%,
|
2022-10-23 10:47:50 +07:00
|
|
|
|
),
|
2023-02-20 23:44:33 +07:00
|
|
|
|
|
2022-10-22 15:39:36 +07:00
|
|
|
|
// Medium (tablets)
|
2023-02-20 23:44:33 +07:00
|
|
|
|
// Font size: 18px
|
2022-10-23 10:47:50 +07:00
|
|
|
|
md:
|
|
|
|
|
(
|
|
|
|
|
breakpoint: 768px,
|
|
|
|
|
viewport: 700px,
|
2023-02-13 20:19:54 +07:00
|
|
|
|
root-font-size: 112.5%,
|
2022-10-23 10:47:50 +07:00
|
|
|
|
),
|
2023-02-20 23:44:33 +07:00
|
|
|
|
|
2023-03-20 20:31:27 +07:00
|
|
|
|
// Large
|
2023-02-20 23:44:33 +07:00
|
|
|
|
// Font size: 19px
|
2022-10-23 10:47:50 +07:00
|
|
|
|
lg:
|
|
|
|
|
(
|
2023-02-20 23:44:33 +07:00
|
|
|
|
breakpoint: 1024px,
|
|
|
|
|
viewport: 950px,
|
2023-02-13 20:19:54 +07:00
|
|
|
|
root-font-size: 118.75%,
|
2022-10-23 10:47:50 +07:00
|
|
|
|
),
|
2023-02-20 23:44:33 +07:00
|
|
|
|
|
2023-03-20 20:31:27 +07:00
|
|
|
|
// Extra large
|
2023-02-20 23:44:33 +07:00
|
|
|
|
// Font size: 20px
|
2022-10-23 10:47:50 +07:00
|
|
|
|
xl:
|
|
|
|
|
(
|
2023-02-20 23:44:33 +07:00
|
|
|
|
breakpoint: 1280px,
|
|
|
|
|
viewport: 1200px,
|
2023-02-13 20:19:54 +07:00
|
|
|
|
root-font-size: 125%,
|
2023-03-20 20:31:27 +07:00
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
// Extra extra large
|
|
|
|
|
// Font size: 21px
|
|
|
|
|
xxl:
|
|
|
|
|
(
|
|
|
|
|
breakpoint: 1536px,
|
|
|
|
|
viewport: 1450px,
|
|
|
|
|
root-font-size: 131.25%,
|
2022-10-23 10:47:50 +07:00
|
|
|
|
)
|
2022-10-22 15:39:36 +07:00
|
|
|
|
),
|
|
|
|
|
$breakpoints
|
|
|
|
|
);
|
|
|
|
|
|
2022-10-23 10:47:50 +07:00
|
|
|
|
// Modules to export
|
|
|
|
|
$modules: () !default;
|
|
|
|
|
$modules: map.merge(
|
|
|
|
|
(
|
|
|
|
|
// Theme
|
|
|
|
|
"themes/default": true,
|
|
|
|
|
|
|
|
|
|
// Layout
|
|
|
|
|
"layout/document": true,
|
|
|
|
|
"layout/landmarks": true,
|
|
|
|
|
"layout/container": true,
|
|
|
|
|
"layout/section": true,
|
|
|
|
|
"layout/grid": true,
|
2024-01-27 15:22:35 +07:00
|
|
|
|
"layout/overflow-auto": true,
|
2022-10-23 10:47:50 +07:00
|
|
|
|
|
|
|
|
|
// Content
|
|
|
|
|
"content/link": true,
|
|
|
|
|
"content/typography": true,
|
|
|
|
|
"content/embedded": true,
|
|
|
|
|
"content/button": true,
|
|
|
|
|
"content/table": true,
|
|
|
|
|
"content/code": true,
|
2024-01-27 15:13:14 +07:00
|
|
|
|
"content/figure": true,
|
2024-09-27 23:45:54 +03:00
|
|
|
|
"content/misc": true,
|
2022-10-23 10:47:50 +07:00
|
|
|
|
|
|
|
|
|
// Forms
|
|
|
|
|
"forms/basics": true,
|
|
|
|
|
"forms/checkbox-radio-switch": true,
|
|
|
|
|
"forms/input-color": true,
|
|
|
|
|
"forms/input-date": true,
|
|
|
|
|
"forms/input-file": true,
|
|
|
|
|
"forms/input-range": true,
|
|
|
|
|
"forms/input-search": true,
|
|
|
|
|
|
|
|
|
|
// Components
|
|
|
|
|
"components/accordion": true,
|
|
|
|
|
"components/card": true,
|
|
|
|
|
"components/dropdown": true,
|
2023-04-02 10:36:52 +07:00
|
|
|
|
"components/group": true,
|
2022-10-23 10:47:50 +07:00
|
|
|
|
"components/loading": true,
|
|
|
|
|
"components/modal": true,
|
|
|
|
|
"components/nav": true,
|
|
|
|
|
"components/progress": true,
|
|
|
|
|
"components/tooltip": true,
|
|
|
|
|
|
|
|
|
|
// Utilities
|
|
|
|
|
"utilities/accessibility": true,
|
|
|
|
|
"utilities/reduce-motion": true
|
|
|
|
|
),
|
|
|
|
|
$modules
|
|
|
|
|
);
|