bulma-social 2.0.0 → 3.0.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 (112) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +179 -120
  3. package/css/all.css +1408 -1671
  4. package/css/all.min.css +1 -1
  5. package/css/single/apple/apple.css +58 -105
  6. package/css/single/apple/apple.min.css +1 -1
  7. package/css/single/bitbucket/bitbucket.css +58 -105
  8. package/css/single/bitbucket/bitbucket.min.css +1 -1
  9. package/css/single/discord/discord.css +58 -105
  10. package/css/single/discord/discord.min.css +1 -1
  11. package/css/single/dropbox/dropbox.css +58 -105
  12. package/css/single/dropbox/dropbox.min.css +1 -1
  13. package/css/single/facebook/facebook.css +58 -105
  14. package/css/single/facebook/facebook.min.css +1 -1
  15. package/css/single/flickr/flickr.css +58 -105
  16. package/css/single/flickr/flickr.min.css +1 -1
  17. package/css/single/foursquare/foursquare.css +58 -105
  18. package/css/single/foursquare/foursquare.min.css +1 -1
  19. package/css/single/github/github.css +58 -105
  20. package/css/single/github/github.min.css +1 -1
  21. package/css/single/gitlab/gitlab.css +58 -105
  22. package/css/single/gitlab/gitlab.min.css +1 -1
  23. package/css/single/instagram/instagram.css +58 -105
  24. package/css/single/instagram/instagram.min.css +1 -1
  25. package/css/single/linkedin/linkedin.css +58 -105
  26. package/css/single/linkedin/linkedin.min.css +1 -1
  27. package/css/single/microsoft/microsoft.css +58 -105
  28. package/css/single/microsoft/microsoft.min.css +1 -1
  29. package/css/single/odnoklassniki/odnoklassniki.css +58 -105
  30. package/css/single/odnoklassniki/odnoklassniki.min.css +1 -1
  31. package/css/single/openid/openid.css +58 -105
  32. package/css/single/openid/openid.min.css +1 -1
  33. package/css/single/pinterest/pinterest.css +58 -105
  34. package/css/single/pinterest/pinterest.min.css +1 -1
  35. package/css/single/reddit/reddit.css +58 -105
  36. package/css/single/reddit/reddit.min.css +1 -1
  37. package/css/single/slack/slack.css +153 -0
  38. package/css/single/slack/slack.min.css +1 -0
  39. package/css/single/soundcloud/soundcloud.css +58 -105
  40. package/css/single/soundcloud/soundcloud.min.css +1 -1
  41. package/css/single/tumblr/tumblr.css +58 -105
  42. package/css/single/tumblr/tumblr.min.css +1 -1
  43. package/css/single/twitter/twitter.css +58 -105
  44. package/css/single/twitter/twitter.min.css +1 -1
  45. package/css/single/vimeo/vimeo.css +58 -105
  46. package/css/single/vimeo/vimeo.min.css +1 -1
  47. package/css/single/vk/vk.css +58 -105
  48. package/css/single/vk/vk.min.css +1 -1
  49. package/css/single/yahoo/yahoo.css +58 -105
  50. package/css/single/yahoo/yahoo.min.css +1 -1
  51. package/css/single/youtube/youtube.css +58 -105
  52. package/css/single/youtube/youtube.min.css +1 -1
  53. package/package.json +24 -20
  54. package/sass/elements/_animations.scss +11 -0
  55. package/sass/elements/_button.scss +254 -0
  56. package/sass/social-providers/_all.scss +7 -0
  57. package/sass/social-providers/single/_apple.scss +3 -0
  58. package/sass/social-providers/single/_bitbucket.scss +3 -0
  59. package/sass/social-providers/single/_discord.scss +3 -0
  60. package/sass/social-providers/single/_dropbox.scss +3 -0
  61. package/sass/social-providers/single/_facebook.scss +3 -0
  62. package/sass/social-providers/single/_flickr.scss +3 -0
  63. package/sass/social-providers/single/_foursquare.scss +3 -0
  64. package/sass/social-providers/single/_github.scss +3 -0
  65. package/sass/social-providers/single/_gitlab.scss +3 -0
  66. package/sass/social-providers/single/_instagram.scss +3 -0
  67. package/sass/social-providers/single/_linkedin.scss +3 -0
  68. package/sass/social-providers/single/_microsoft.scss +3 -0
  69. package/sass/social-providers/single/_odnoklassniki.scss +3 -0
  70. package/sass/social-providers/single/_openid.scss +3 -0
  71. package/sass/social-providers/single/_pinterest.scss +3 -0
  72. package/sass/social-providers/single/_reddit.scss +3 -0
  73. package/sass/social-providers/single/_slack.scss +3 -0
  74. package/sass/social-providers/single/_soundcloud.scss +3 -0
  75. package/sass/social-providers/single/_tumblr.scss +3 -0
  76. package/sass/social-providers/single/_twitter.scss +3 -0
  77. package/sass/social-providers/single/_vimeo.scss +3 -0
  78. package/sass/social-providers/single/_vk.scss +3 -0
  79. package/sass/social-providers/single/_yahoo.scss +3 -0
  80. package/sass/social-providers/single/_youtube.scss +3 -0
  81. package/sass/utilities/_derived.scss +36 -0
  82. package/sass/utilities/_functions.scss +117 -0
  83. package/sass/utilities/_index.scss +3 -0
  84. package/sass/utilities/_providers.scss +26 -0
  85. package/CHANGELOG.md +0 -113
  86. package/bulma-social.sass +0 -7
  87. package/css/.DS_Store +0 -0
  88. package/css/all.css.map +0 -1
  89. package/css/single/.DS_Store +0 -0
  90. package/css/single/apple/.DS_Store +0 -0
  91. package/css/single/bitbucket/.DS_Store +0 -0
  92. package/css/single/discord/.DS_Store +0 -0
  93. package/css/single/dropbox/.DS_Store +0 -0
  94. package/css/single/facebook/.DS_Store +0 -0
  95. package/css/single/flickr/.DS_Store +0 -0
  96. package/css/single/foursquare/.DS_Store +0 -0
  97. package/css/single/github/.DS_Store +0 -0
  98. package/css/single/gitlab/.DS_Store +0 -0
  99. package/css/single/instagram/.DS_Store +0 -0
  100. package/css/single/linkedin/.DS_Store +0 -0
  101. package/css/single/microsoft/.DS_Store +0 -0
  102. package/css/single/odnoklassniki/.DS_Store +0 -0
  103. package/css/single/openid/.DS_Store +0 -0
  104. package/css/single/pinterest/.DS_Store +0 -0
  105. package/css/single/yahoo/.DS_Store +0 -0
  106. package/css/single/youtube/.DS_Store +0 -0
  107. package/sass/.DS_Store +0 -0
  108. package/sass/elements/button.sass +0 -155
  109. package/sass/social-providers/.DS_Store +0 -0
  110. package/sass/social-providers/all.sass +0 -151
  111. package/sass/utilities/animations.sass +0 -10
  112. package/sass/utilities/functions.sass +0 -68
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 - Aldi Duzha
3
+ Copyright (c) 2026 - github.com/aldi
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,16 +1,36 @@
1
- # Bulma-Social
1
+ <h1 align="center">Bulma-Social</h1>
2
2
 
3
- Social Buttons and Colors for [Bulma](http://bulma.io/)
3
+ <p align="center">
4
+ <strong>Social Buttons and Colors for <a href="https://bulma.io/">Bulma</a></strong>
5
+ </p>
4
6
 
5
- [![npm](https://img.shields.io/npm/v/bulma-social.svg)](https://npmjs.com/package/bulma-social)
6
- [![jsdelivr](https://data.jsdelivr.com/v1/package/npm/bulma-social/badge)](https://www.jsdelivr.com/package/npm/bulma-social)
7
- [![Awesome](https://awesome.re/badge-flat2.svg)](https://awesome.re)
7
+ <p align="center">
8
+ <a href="https://npmjs.com/package/bulma-social"><img src="https://img.shields.io/npm/v/bulma-social.svg?style=flat-square&color=1877F2" alt="npm version"></a>
9
+ <a href="https://www.jsdelivr.com/package/npm/bulma-social"><img src="https://img.shields.io/jsdelivr/npm/hm/bulma-social?style=flat-square&color=00D1B2" alt="jsDelivr hits"></a>
10
+ <a href="https://npmjs.com/package/bulma-social"><img src="https://img.shields.io/npm/dm/bulma-social.svg?style=flat-square&color=EA4C89" alt="npm downloads"></a>
11
+ <a href="https://github.com/aldi/bulma-social/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/bulma-social.svg?style=flat-square&color=10b981" alt="MIT License"></a>
12
+ <a href="https://awesome.re"><img src="https://img.shields.io/badge/Awesome-Bulma-00D1B2?style=flat-square" alt="Awesome"></a>
13
+ </p>
8
14
 
9
- [Check out the live demo!](http://aldi.github.io/bulma-social)
15
+ <p align="center">
16
+ <a href="https://aldi.github.io/bulma-social"><strong>📖 View Documentation</strong></a> ·
17
+ <a href="https://aldi.github.io/bulma-social"><strong>🎨 Live Demo</strong></a> ·
18
+ <a href="https://github.com/aldi/bulma-social/issues"><strong>🐛 Report Bug</strong></a>
19
+ </p>
10
20
 
11
- ![bulma-social-image](docs/assets/images/bulma-social.png)
21
+ ![bulma-social-preview](media/preview.webp)
12
22
 
13
- ## Installation
23
+ ## ✨ Features
24
+
25
+ - 🎨 **24 Providers** — All major social platforms included
26
+ - 🧩 **Bulma Native** — Seamlessly integrates with Bulma's class naming conventions
27
+ - 📦 **Modular Imports** — Import only what you need, keep your bundle minimal
28
+ - 🌙 **Dark Mode Ready** — Fully optimized for light and dark themes
29
+ - 🔧 **Framework Agnostic** — Works with React, Vue, Angular, Svelte, or plain HTML
30
+ - 🎯 **Any Icon Library** — Compatible with Font Awesome, Material Icons, Ionicons, and more
31
+
32
+
33
+ ## 📦 Installation
14
34
 
15
35
  ### NPM
16
36
 
@@ -18,164 +38,203 @@ Social Buttons and Colors for [Bulma](http://bulma.io/)
18
38
  npm install bulma-social
19
39
  ```
20
40
 
21
- or
22
-
23
41
  ### Yarn
24
42
 
25
43
  ```sh
26
44
  yarn add bulma-social
27
45
  ```
28
46
 
29
- After installation, you can import the CSS files into your project using these commands:
30
-
31
- Import all social providers:
47
+ ### pnpm
32
48
 
33
49
  ```sh
34
- @import 'bulma-social/css/all.min.css';
50
+ pnpm add bulma-social
35
51
  ```
36
52
 
37
- or import certain social providers:
53
+ After installation, import the CSS in your project:
38
54
 
39
- ```sh
40
- @import 'bulma-social/css/single/apple/apple.min.css'
55
+ ```js
56
+ // Import all social providers
57
+ import "bulma-social/css/all.min.css";
58
+
59
+ // Or import specific providers for smaller bundle size
60
+ import "bulma-social/css/single/facebook/facebook.min.css";
61
+ import "bulma-social/css/single/github/github.min.css";
41
62
  ```
42
63
 
43
64
  ### CDN
44
65
 
45
- [https://www.jsdelivr.com/package/npm/bulma-social](https://www.jsdelivr.com/package/npm/bulma-social)
46
-
47
- Link all social providers:
66
+ Use via [jsDelivr](https://www.jsdelivr.com/package/npm/bulma-social) — no installation required:
48
67
 
49
68
  ```html
50
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma-social@2/css/all.min.css" />
51
- ```
52
-
53
- or link certain social providers:
69
+ <!-- All social providers (~8KB minified) -->
70
+ <link
71
+ rel="stylesheet"
72
+ href="https://cdn.jsdelivr.net/npm/bulma-social@3/css/all.min.css"
73
+ />
54
74
 
55
- ```html
75
+ <!-- Or load specific providers -->
56
76
  <link
57
77
  rel="stylesheet"
58
- href="https://cdn.jsdelivr.net/npm/bulma-social@2/css/single/apple/apple.min.css"
78
+ href="https://cdn.jsdelivr.net/npm/bulma-social@3/css/single/facebook/facebook.min.css"
59
79
  />
60
80
  ```
61
81
 
62
- ## Documentation
63
-
64
- The documentation resides in the [docs](docs) directory.
65
-
66
- Browse the [online documentation here.](https://aldi.github.io/bulma-social/index.html)
67
-
68
- ## Available Social Provider Classes
69
-
70
- - `.is-apple`
71
- - `.is-bitbucket`
72
- - `.is-discord`
73
- - `.is-dropbox`
74
- - `.is-facebook`
75
- - `.is-flickr`
76
- - `.is-foursquare`
77
- - `.is-github`
78
- - `.is-instagram`
79
- - `.is-linkedin`
80
- - `.is-microsoft`
81
- - `.is-odnoklassniki`
82
- - `.is-openid`
83
- - `.is-pinterest`
84
- - `.is-reddit`
85
- - `.is-soundcloud`
86
- - `.is-tumblr`
87
- - `.is-twitter`
88
- - `.is-vimeo`
89
- - `.is-vk`
90
- - `.is-yahoo`
91
- - `.is-youtube`
92
-
93
- ## Available Styles
94
-
95
- - `.is-outlined`
96
- - `.is-inverted`
97
- - `.is-light`
82
+ ---
83
+
84
+ ## 🎨 Supported Social Providers
85
+
86
+ <table>
87
+ <tr>
88
+ <td><code>.is-apple</code></td>
89
+ <td><code>.is-discord</code></td>
90
+ <td><code>.is-facebook</code></td>
91
+ <td><code>.is-github</code></td>
92
+ </tr>
93
+ <tr>
94
+ <td><code>.is-gitlab</code></td>
95
+ <td><code>.is-instagram</code></td>
96
+ <td><code>.is-linkedin</code></td>
97
+ <td><code>.is-microsoft</code></td>
98
+ </tr>
99
+ <tr>
100
+ <td><code>.is-pinterest</code></td>
101
+ <td><code>.is-reddit</code></td>
102
+ <td><code>.is-slack</code></td>
103
+ <td><code>.is-twitter</code></td>
104
+ </tr>
105
+ <tr>
106
+ <td><code>.is-youtube</code></td>
107
+ <td><code>.is-vimeo</code></td>
108
+ <td><code>.is-dropbox</code></td>
109
+ <td><code>.is-bitbucket</code></td>
110
+ </tr>
111
+ <tr>
112
+ <td><code>.is-flickr</code></td>
113
+ <td><code>.is-foursquare</code></td>
114
+ <td><code>.is-odnoklassniki</code></td>
115
+ <td><code>.is-openid</code></td>
116
+ </tr>
117
+ <tr>
118
+ <td><code>.is-soundcloud</code></td>
119
+ <td><code>.is-tumblr</code></td>
120
+ <td><code>.is-vk</code></td>
121
+ <td><code>.is-yahoo</code></td>
122
+ </tr>
123
+ </table>
124
+
125
+ ---
126
+
127
+ ## 🎭 Button Styles & States
128
+
129
+ ### Styles
130
+
131
+ | Class | Description |
132
+ | -------------- | ---------------------------------- |
133
+ | `.is-outlined` | Transparent background with border |
134
+ | `.is-inverted` | Inverted colors |
135
+ | `.is-light` | Light background variant |
136
+ | `.is-dark` | Dark background variant |
137
+
138
+ ### States
139
+
140
+ | Class / Attribute | Description |
141
+ | ----------------- | -------------- |
142
+ | `.is-hovered` | Hover state |
143
+ | `.is-focused` | Focus state |
144
+ | `.is-active` | Active state |
145
+ | `.is-disabled` | Disabled state |
146
+
147
+ ---
148
+
149
+ ## 🖌️ Color Utilities
150
+
151
+ ### Text Colors
98
152
 
99
- ## Available States
100
-
101
- - `.is-hovered` and `:hover`
102
- - `.is-focused` and `:focus`
103
- - `.is-active` and `:active`
104
- - `.is-disabled` and `disabled`
105
- - `.is-static`
106
-
107
- ## Available Text Color Styles
153
+ ```html
154
+ <span class="has-text-facebook">Facebook Blue</span>
155
+ <span class="has-text-facebook-light">Facebook Light</span>
156
+ <span class="has-text-facebook-dark">Facebook Dark</span>
157
+ ```
108
158
 
109
- Replace &lt;social-provider&gt;
159
+ ### Background Colors
110
160
 
111
- - `.has-text-<social-provider>`
112
- - `.has-text-<social-provider>-light`
113
- - `.has-text-<social-provider>-dark`
161
+ ```html
162
+ <div class="has-background-facebook">Facebook Background</div>
163
+ <div class="has-background-facebook-light">Light Variant</div>
164
+ <div class="has-background-facebook-dark">Dark Variant</div>
165
+ ```
114
166
 
115
- ## Available Background Color Styles
167
+ > 💡 Replace `facebook` with any supported provider name.
116
168
 
117
- Replace &lt;social-provider&gt;
169
+ ---
118
170
 
119
- - `.has-background-<social-provider>`
120
- - `.has-background-<social-provider>-light`
121
- - `.has-background-<social-provider>-dark`
171
+ ## 💡 Usage Examples
122
172
 
123
- ## Examples
173
+ ### Buttons with Text
124
174
 
125
175
  ```html
126
- <!-- Buttons with text -->
127
- <a class="button is-medium is-facebook">
176
+ <a class="button is-facebook">
128
177
  <span class="icon">
129
- <i class="fab fa-facebook"></i>
178
+ <i class="fa-brands fa-facebook"></i>
130
179
  </span>
131
- <span>Facebook</span>
180
+ <span>Sign in with Facebook</span>
132
181
  </a>
133
- <a class="button is-medium is-facebook is-outlined">
134
- <span class="icon">
135
- <i class="fab fa-facebook"></i>
136
- </span>
137
- <span>Facebook</span>
138
- </a>
139
- <a class="button is-medium is-facebook is-light">
182
+
183
+ <a class="button is-github is-outlined">
140
184
  <span class="icon">
141
- <i class="fab fa-facebook"></i>
185
+ <i class="fa-brands fa-github"></i>
142
186
  </span>
143
- <span>Facebook</span>
187
+ <span>Continue with GitHub</span>
144
188
  </a>
145
189
 
146
- <!-- Icon Buttons -->
147
- <a class="button is-medium is-facebook">
190
+ <a class="button is-google is-light">
148
191
  <span class="icon">
149
- <i class="fab fa-facebook fa-lg"></i>
192
+ <i class="fa-brands fa-google"></i>
150
193
  </span>
194
+ <span>Sign in with Google</span>
151
195
  </a>
152
- <a class="button is-medium is-facebook is-outlined">
153
- <span class="icon">
154
- <i class="fab fa-facebook fa-lg"></i>
155
- </span>
196
+ ```
197
+
198
+ ### Icon-Only Buttons
199
+
200
+ ```html
201
+ <a class="button is-facebook">
202
+ <span class="icon"><i class="fa-brands fa-facebook fa-lg"></i></span>
156
203
  </a>
157
- <a class="button is-medium is-facebook is-light">
158
- <span class="icon">
159
- <i class="fab fa-facebook fa-lg"></i>
160
- </span>
204
+
205
+ <a class="button is-twitter is-outlined">
206
+ <span class="icon"><i class="fa-brands fa-twitter fa-lg"></i></span>
161
207
  </a>
162
- <a class="button is-medium is-facebook is-inverted">
163
- <span class="icon">
164
- <i class="fab fa-facebook fa-lg"></i>
165
- </span>
208
+
209
+ <a class="button is-instagram is-inverted">
210
+ <span class="icon"><i class="fa-brands fa-instagram fa-lg"></i></span>
166
211
  </a>
212
+ ```
167
213
 
168
- <!-- Text Colors -->
169
- <a class="is-size-4 has-text-facebook">Hi Facebook</a>
170
- <a class="is-size-4 has-text-facebook-light">Hi Facebook Light</a>
171
- <a class="is-size-4 has-text-facebook-dark">Hi Facebook Dark</a>
214
+ ---
172
215
 
173
- <!-- Background Colors -->
174
- <div class="is-size-4 has-background-facebook has-text-white">Hi Facebook</div>
175
- <div class="is-size-4 has-background-facebook-light">Hi Facebook Light</div>
176
- <div class="is-size-4 has-background-facebook-dark has-text-white">Hi Facebook Dark</div>
177
- ```
216
+ ## 📖 Documentation
217
+
218
+ Full documentation with interactive examples is available at:
219
+
220
+ **👉 [aldi.github.io/bulma-social](https://aldi.github.io/bulma-social)**
221
+
222
+ ---
223
+
224
+ ## 🤝 Contributing
225
+
226
+ Contributions are welcome! Please read our [Contributing Guide](.github/CONTRIBUTING.md) before submitting a Pull Request.
227
+
228
+ 1. Fork the repository
229
+ 2. Create your feature branch (`git checkout -b new-provider`)
230
+ 3. Commit your changes (`git commit -m 'Add new provider'`)
231
+ 4. Push to the branch (`git push origin new-provider`)
232
+ 5. Open a Pull Request
233
+
234
+ ---
235
+
236
+ ## 📄 License
178
237
 
179
- ## Licence 📜
238
+ Released under the [MIT License](LICENSE).
180
239
 
181
- Code released under [the MIT license](https://github.com/aldi/bulma-social/blob/master/LICENSE).
240
+ ---