@papyrus-ui/styles 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +50 -0
  3. package/css/styles.css +25609 -0
  4. package/css/styles.css.map +1 -0
  5. package/css/styles.min.css +2 -0
  6. package/css/styles.min.css.map +1 -0
  7. package/dist/cjs/const/atoms.js +238 -0
  8. package/dist/cjs/const/atoms.js.map +1 -0
  9. package/dist/cjs/const/themes.js +167 -0
  10. package/dist/cjs/const/themes.js.map +1 -0
  11. package/dist/cjs/index.js +69 -0
  12. package/dist/cjs/index.js.map +1 -0
  13. package/dist/cjs/styles/atoms.css.vanilla.js +10 -0
  14. package/dist/cjs/styles/atoms.css.vanilla.js.map +1 -0
  15. package/dist/cjs/styles/global.css.vanilla.js +8 -0
  16. package/dist/cjs/styles/global.css.vanilla.js.map +1 -0
  17. package/dist/cjs/styles/themes.css.vanilla.js +8 -0
  18. package/dist/cjs/styles/themes.css.vanilla.js.map +1 -0
  19. package/dist/cjs/styles/utility.css.vanilla.js +26 -0
  20. package/dist/cjs/styles/utility.css.vanilla.js.map +1 -0
  21. package/dist/cjs/utils/bp.js +69 -0
  22. package/dist/cjs/utils/bp.js.map +1 -0
  23. package/dist/cjs/utils/partition-atoms.js +13 -0
  24. package/dist/cjs/utils/partition-atoms.js.map +1 -0
  25. package/dist/cjs/utils/partition-object.js +20 -0
  26. package/dist/cjs/utils/partition-object.js.map +1 -0
  27. package/dist/es/const/atoms.js +201 -0
  28. package/dist/es/const/atoms.js.map +1 -0
  29. package/dist/es/const/themes.js +163 -0
  30. package/dist/es/const/themes.js.map +1 -0
  31. package/dist/es/index.js +9 -0
  32. package/dist/es/index.js.map +1 -0
  33. package/dist/es/styles/atoms.css.vanilla.js +6 -0
  34. package/dist/es/styles/atoms.css.vanilla.js.map +1 -0
  35. package/dist/es/styles/global.css.vanilla.js +4 -0
  36. package/dist/es/styles/global.css.vanilla.js.map +1 -0
  37. package/dist/es/styles/themes.css.vanilla.js +4 -0
  38. package/dist/es/styles/themes.css.vanilla.js.map +1 -0
  39. package/dist/es/styles/utility.css.vanilla.js +13 -0
  40. package/dist/es/styles/utility.css.vanilla.js.map +1 -0
  41. package/dist/es/utils/bp.js +62 -0
  42. package/dist/es/utils/bp.js.map +1 -0
  43. package/dist/es/utils/partition-atoms.js +9 -0
  44. package/dist/es/utils/partition-atoms.js.map +1 -0
  45. package/dist/es/utils/partition-object.js +16 -0
  46. package/dist/es/utils/partition-object.js.map +1 -0
  47. package/dist/types/const/atoms.d.ts +544 -0
  48. package/dist/types/const/index.d.ts +2 -0
  49. package/dist/types/const/themes.d.ts +2 -0
  50. package/dist/types/index.d.ts +10 -0
  51. package/dist/types/styles/atoms.css.d.ts +12107 -0
  52. package/dist/types/styles/global.css.d.ts +165 -0
  53. package/dist/types/styles/themes.css.d.ts +1 -0
  54. package/dist/types/styles/utility.css.d.ts +22 -0
  55. package/dist/types/types/index.d.ts +1 -0
  56. package/dist/types/types/theme.d.ts +158 -0
  57. package/dist/types/utils/bp.d.ts +7 -0
  58. package/dist/types/utils/partition-atoms.d.ts +3 -0
  59. package/dist/types/utils/partition-object.d.ts +5 -0
  60. package/fonts/boxicons.eot +0 -0
  61. package/fonts/boxicons.svg +1660 -0
  62. package/fonts/boxicons.ttf +0 -0
  63. package/fonts/boxicons.woff +0 -0
  64. package/fonts/boxicons.woff2 +0 -0
  65. package/package.json +52 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @papyrus-ui/styles
2
+
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ade82e1: Initial version
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # @papyrus-ui/base
2
+
3
+ Global styles, themes and style utilities for implementing components based on the Papyrus UI design system.
4
+
5
+ ## Getting Started:
6
+
7
+ 1. **Create Utility Classes with `atoms()`**
8
+
9
+ Define utility classes using the atoms() function provided by @papyrus-ui/base.
10
+
11
+ ```ts
12
+ // card.css.ts
13
+
14
+ import { atoms } from '@papyrus-ui/styles';
15
+
16
+ export const card = atoms({
17
+ p: 4,
18
+ rounded: 'md',
19
+ shadow: 'md',
20
+ bg: 'white',
21
+ });
22
+ ```
23
+
24
+ Atoms can be generated at runtime as well. However, defining them in .css.ts files ensures that all calculations are
25
+ performed during the build phase.
26
+
27
+ 2. **Create a Card Component**
28
+
29
+ Utilize the defined utility class (card) to create a custom Card component:
30
+
31
+ ```tsx
32
+ import React from 'react';
33
+ import * as S from './card.css.ts';
34
+
35
+ const Card: React.FC<{ title: string; content: string }> = ({ title, content }) => {
36
+ return (
37
+ <div className={S.card}>
38
+ <h2>{title}</h2>
39
+ <p>{content}</p>
40
+ </div>
41
+ );
42
+ };
43
+
44
+ export default Card;
45
+ ```
46
+
47
+ ## Contributing
48
+
49
+ We welcome contributions to enhance Papyrus UI. To contribute, fork the repository, make your changes, and submit a pull
50
+ request. If you encounter issues or have suggestions, please open an issue on GitHub.