captive-theme 0.1.0.alpha

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1624d6400b117b4b1ce739ad20362d7ce210e0eb2930da47ef8e2cffdb30c169
4
+ data.tar.gz: d0ee1d343984c515a668567c836d1d5e1d74f1e5ed62a20c0b8a9ab88497f583
5
+ SHA512:
6
+ metadata.gz: e3bcbd0991a31978ad879f970b3637e0678fe986eae35b2a044a7ad26f5dcf7617e9ac1202fd19d2f7d472e6ab516b11e2809992e896a3538d2e8594a951929e
7
+ data.tar.gz: 52931d26b74ac74505d97599d8ae0f17e382ca46a9b5224ea81b0867e372c8dbe4fd89f4d1d7dc3a45c3b01adf4a22ff971c7e747d1f45247ff6c68e1a338649
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright Clément Prod'homme
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # captive-theme
2
+
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
+ [![Gem Version](https://img.shields.io/gem/v/captive-theme.svg)](https://rubygems.org/gems/captive-theme)
5
+
6
+ A UI theme that follows [Captive](https://captive.fr)'s Design System
7
+
8
+ ## Installation
9
+
10
+ - Add this to you Gemfile:
11
+
12
+ ```ruby
13
+ gem 'captive-theme'
14
+ ```
15
+
16
+ - Run `bundle install`
17
+
18
+ ## Contributing
19
+
20
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Captive-Studio/captive-sdk.
21
+
22
+ ## License
23
+
24
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i(spec rubocop)
@@ -0,0 +1,122 @@
1
+ // Couleurs du nuancier Captive
2
+ // https://www.notion.so/Nuanciers-Captive-pour-le-web-et-mobile-ee189f2db6e543e6bc7cba77c9e8dff5
3
+ $white: #fff !default;
4
+ $blue-grey-900: #102a43 !default;
5
+ $blue-grey-600: #486581 !default;
6
+ $blue-grey-500: #5e7997 !default;
7
+ $blue-grey-200: #bcccdc !default;
8
+ $blue-grey-050: #f5f7fa !default;
9
+ $pink-vivid-500: #d9127c !default;
10
+ $pink-vivid-400: #e8368f !default;
11
+ $pink-vivid-050: #fff5f8 !default;
12
+ $light-blue-vivid-700: #1177b6 !default;
13
+ $light-blue-vivid-600: #188dcd !default;
14
+ $light-blue-vivid-050: #f0fbff !default;
15
+ $lime-green-700: #507712 !default;
16
+ $lime-green-600: #63921a !default;
17
+ $lime-green-050: #f2fde0 !default;
18
+ $red-vivid-600: #cf1124 !default;
19
+ $red-vivid-500: #e12d39 !default;
20
+ $red-vivid-050: #fff0f0 !default;
21
+ $yellow-vivid-800: #b44d12 !default;
22
+ $yellow-vivid-700: #cb6e17 !default;
23
+ $yellow-vivid-050: #fffbea !default;
24
+ $purple-700: #421987 !default;
25
+ $purple-500: #653cad !default;
26
+ $purple-050: #eae2f8 !default;
27
+
28
+ // Couleurs du Design System Captive
29
+ // https://www.notion.so/captive/UI-Les-couleurs-du-design-system-Captive-eed4bbb0295f4d949c47e183033e5180
30
+
31
+ $fg-default: $blue-grey-900 !default;
32
+ $fg-muted: $blue-grey-600 !default;
33
+ $fg-subtle: $blue-grey-500 !default;
34
+ $fg-on-emphasis: $white !default;
35
+ $bg-default: $white !default;
36
+ $bg-subtle: $blue-grey-050 !default;
37
+ $bg-emphasis: $blue-grey-900 !default;
38
+ $primary-fg: $pink-vivid-500 !default;
39
+ $primary-emphasis: $pink-vivid-500 !default;
40
+ $primary-muted: $pink-vivid-400 !default;
41
+ $primary-subtle: $pink-vivid-050 !default;
42
+ $primary-on-emphasis: $white !default;
43
+ $accent-fg: $light-blue-vivid-700 !default;
44
+ $accent-emphasis: $light-blue-vivid-700 !default;
45
+ $accent-muted: $light-blue-vivid-600 !default;
46
+ $accent-subtle: $light-blue-vivid-050 !default;
47
+ $success-fg: $lime-green-700 !default;
48
+ $success-emphasis: $lime-green-700 !default;
49
+ $success-muted: $lime-green-600 !default;
50
+ $success-subtle: $lime-green-050 !default;
51
+ $attention-fg: $yellow-vivid-800 !default;
52
+ $attention-emphasis: $yellow-vivid-800 !default;
53
+ $attention-muted: $yellow-vivid-700 !default;
54
+ $attention-subtle: $yellow-vivid-050 !default;
55
+ $danger-fg: $red-vivid-600 !default;
56
+ $danger-emphasis: $red-vivid-600 !default;
57
+ $danger-muted: $red-vivid-500 !default;
58
+ $danger-subtle: $red-vivid-050 !default;
59
+ $support-fg: $purple-700 !default;
60
+ $support-emphasis: $purple-700 !default;
61
+ $support-muted: $purple-500 !default;
62
+ $support-subtle: $purple-050 !default;
63
+ $border-color: $blue-grey-200 !default;
64
+ $border-color-emphasis: $blue-grey-900 !default;
65
+
66
+ // Espacements
67
+ // Cf https://www.notion.so/captive/UI-Espacement-du-Design-System-Captive-cc192b02b57d453fa0da9fdc6d1234c2
68
+ $spacer-0: 0 !default;
69
+ $spacer-1: 4px !default;
70
+ $spacer-2: 8px !default;
71
+ $spacer-3: 12px !default;
72
+ $spacer-4: 16px !default;
73
+ $spacer-5: 24px !default;
74
+ $spacer-6: 32px !default;
75
+ $spacer-7: 48px !default;
76
+ $spacer-8: 64px !default;
77
+ $spacer-9: 96px !default;
78
+ $spacer-10: 128px !default;
79
+ $spacer-11: 192px !default;
80
+ $spacer-12: 256px !default;
81
+
82
+ // Fonts
83
+ // https://www.notion.so/captive/Typographie-Captive-85c60f5a849f4adaacaf18cc4aff2cea
84
+ /* stylelint-disable-next-line import-notation */
85
+ @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Barlow:wght@400;600&display=swap');
86
+
87
+ $default-font-family:
88
+ 'Open Sans',
89
+ -apple-system,
90
+ segoe ui,
91
+ roboto,
92
+ noto sans,
93
+ ubuntu,
94
+ cantarell,
95
+ helvetica neue !default;
96
+ $title-font-family:
97
+ 'Barlow',
98
+ -apple-system,
99
+ segoe ui,
100
+ roboto,
101
+ noto sans,
102
+ ubuntu,
103
+ cantarell,
104
+ helvetica neue !default;
105
+
106
+ // Shadows
107
+ $shadow-xs:
108
+ 0 1px 3px rgb(0 0 0 / 12%),
109
+ 0 1px 2px rgb(0 0 0 / 24%) !default;
110
+ $shadow-s:
111
+ 0 3px 6px rgb(0 0 0 / 15%),
112
+ 0 2px 4px rgb(0 0 0 / 12%) !default;
113
+ $shadow-m:
114
+ 0 10px 20px rgb(0 0 0 / 15%),
115
+ 0 3px 6px rgb(0 0 0 / 10%) !default;
116
+ $shadow-l:
117
+ 0 15px 25px rgb(0 0 0 / 15%),
118
+ 0 5px 10px rgb(0 0 0 / 5%) !default;
119
+ $shadow-xl: 0 20px 40px rgb(0 0 0 / 20%) !default;
120
+
121
+ // radius
122
+ $border-radius-s: 12px !default;
@@ -0,0 +1,6 @@
1
+ module Captive
2
+ module Theme
3
+ class Railtie < ::Rails::Railtie
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Captive
4
+ module Theme
5
+ class Error < StandardError; end
6
+
7
+ # Your code goes here...
8
+ module Rails
9
+ class Engine < ::Rails::Engine
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :captive_theme do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: captive-theme
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.alpha
5
+ platform: ruby
6
+ authors:
7
+ - Captive
8
+ - Clément Prod'homme
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2023-10-12 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Theme captive with font, design, ..
15
+ email:
16
+ - clement.prod-homme@captive.fr
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - MIT-LICENSE
22
+ - README.md
23
+ - Rakefile
24
+ - app/assets/stylesheets/captive-theme/_variables.scss
25
+ - lib/captive/theme.rb
26
+ - lib/captive/theme/railtie.rb
27
+ - lib/tasks/captive/theme_tasks.rake
28
+ homepage: https://captive.fr/
29
+ licenses:
30
+ - MIT
31
+ metadata:
32
+ homepage_uri: https://captive.fr/
33
+ source_code_uri: https://github.com/Captive-Studio/captive-sdk/tree/v0.1.0.alpha/captive-theme
34
+ post_install_message:
35
+ rdoc_options: []
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.3.1
48
+ requirements: []
49
+ rubygems_version: 3.3.26
50
+ signing_key:
51
+ specification_version: 4
52
+ summary: Theme captive with font, design, ..
53
+ test_files: []