Skip to content

Commit 28372a6

Browse files
authored
chore: add border tokens (#38)(#64)
1 parent d5a0513 commit 28372a6

File tree

10 files changed

+85
-67
lines changed

10 files changed

+85
-67
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Added
1010

11+
- [Library] Add border tokens ([#38](https://github.com/Orange-OpenSource/ouds-flutter/issues/38))
1112
- [Library] Add opacity tokens ([#36](https://github.com/Orange-OpenSource/ouds-flutter/issues/36))
1213
- [DemoApp] Rename demo app to DesignToolbox ([#28](https://github.com/Orange-OpenSource/ouds-flutter/issues/28))
1314
- [Library] Implement tokens architecture ([#37](https://github.com/Orange-OpenSource/ouds-flutter/issues/37))

ouds_core/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Added
1010

11+
- [Library] Add border tokens ([#38](https://github.com/Orange-OpenSource/ouds-flutter/issues/38))
1112
- [Library] Add opacity tokens ([#36](https://github.com/Orange-OpenSource/ouds-flutter/issues/36))
1213
- [Library] Implement tokens architecture ([#37](https://github.com/Orange-OpenSource/ouds-flutter/issues/37))
1314
- [Library] Create the basics of a documentation ([#7](https://github.com/Orange-OpenSource/ouds-flutter/issues/7))

ouds_global_raw_tokens/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Added
1010

11+
- [Library] Add border tokens ([#38](https://github.com/Orange-OpenSource/ouds-flutter/issues/38))
1112
- [Library] Add opacity tokens ([#36](https://github.com/Orange-OpenSource/ouds-flutter/issues/36))
1213
- [Library] Implement tokens architecture ([#37](https://github.com/Orange-OpenSource/ouds-flutter/issues/37))
1314
- [Library] Create the basics of a documentation ([#7](https://github.com/Orange-OpenSource/ouds-flutter/issues/7))

ouds_theme_contract/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Added
1010

11+
- [Library] Add border tokens ([#38](https://github.com/Orange-OpenSource/ouds-flutter/issues/38))
1112
- [Library] Add opacity tokens ([#36](https://github.com/Orange-OpenSource/ouds-flutter/issues/36))
1213
- [Library] Implement tokens architecture ([#37](https://github.com/Orange-OpenSource/ouds-flutter/issues/37))
1314
- [Library] Create the basics of a documentation ([#7](https://github.com/Orange-OpenSource/ouds-flutter/issues/7))

ouds_theme_contract/lib/theme/tokens/semantic/ouds_border_semantic_tokens.dart

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
/*
2-
* Software Name : OUDS Flutter
3-
* SPDX-FileCopyrightText: Copyright (c) Orange SA
4-
* SPDX-License-Identifier: MIT
5-
*
6-
* This software is distributed under the MIT license,
7-
* the text of which is available at https://opensource.org/license/MIT/
8-
* or see the "LICENSE" file for more details.
9-
*
10-
* Software description: Flutter library of reusable graphical components for Android and iOS
11-
*/
1+
//
2+
// Software Name: OUDS Flutter
3+
// SPDX-FileCopyrightText: Copyright (c) Orange SA
4+
// SPDX-License-Identifier: MIT
5+
//
6+
// This software is distributed under the MIT license,
7+
// the text of which is available at https://opensource.org/license/MIT/
8+
// or see the "LICENSE" file for more details.
9+
//
10+
// Software description: Flutter library of reusable graphical components
11+
//
1212

13-
class OudsBorderSemanticTokens {
13+
// Tokens version 0.5.0
14+
// Generated by Tokenator
15+
16+
17+
abstract class OudsBorderSemanticTokens {
1418
late double radiusDefault;
1519
late double radiusMedium;
1620
late double radiusNone;

ouds_theme_orange/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Added
1010

11+
- [Library] Add border tokens ([#38](https://github.com/Orange-OpenSource/ouds-flutter/issues/38))
1112
- [Library] Add opacity tokens ([#36](https://github.com/Orange-OpenSource/ouds-flutter/issues/36))
1213
- [Library] Implement tokens architecture ([#37](https://github.com/Orange-OpenSource/ouds-flutter/issues/37))
1314
- [Library] Create the basics of a documentation ([#7](https://github.com/Orange-OpenSource/ouds-flutter/issues/7))
Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,23 @@
1-
/*
2-
* Software Name : OUDS Flutter
3-
* SPDX-FileCopyrightText: Copyright (c) Orange SA
4-
* SPDX-License-Identifier: MIT
5-
*
6-
* This software is distributed under the MIT license,
7-
* the text of which is available at https://opensource.org/license/MIT/
8-
* or see the "LICENSE" file for more details.
9-
*
10-
* Software description: Flutter library of reusable graphical components for Android and iOS
11-
*/
1+
//
2+
// Software Name: OUDS Flutter
3+
// SPDX-FileCopyrightText: Copyright (c) Orange SA
4+
// SPDX-License-Identifier: MIT
5+
//
6+
// This software is distributed under the MIT license,
7+
// the text of which is available at https://opensource.org/license/MIT/
8+
// or see the "LICENSE" file for more details.
9+
//
10+
// Software description: Flutter library of reusable graphical components
11+
//
12+
13+
// Tokens version 0.5.0
14+
// Generated by Tokenator
1215

13-
import 'package:ouds_global_raw_tokens/border_raw_tokens.dart';
1416
import 'package:ouds_theme_contract/theme/tokens/semantic/ouds_border_semantic_tokens.dart';
17+
import 'package:ouds_global_raw_tokens/border_raw_tokens.dart';
1518

19+
1620
class OrangeBorderSemanticTokens extends OudsBorderSemanticTokens {
17-
@override
18-
double get widthDefault => BorderRawTokens.borderWidth125;
19-
@override
20-
double get widthFocus => BorderRawTokens.borderWidth125;
21-
@override
22-
double get widthFocusInset => BorderRawTokens.borderWidth50;
23-
@override
24-
double get widthMedium => BorderRawTokens.borderWidth50;
25-
@override
26-
double get widthNone => BorderRawTokens.borderWidth0;
27-
@override
28-
double get widthThick => BorderRawTokens.borderWidth75;
29-
@override
30-
double get widthThicker => BorderRawTokens.borderWidth100;
31-
@override
32-
double get widthThin => BorderRawTokens.borderWidth25;
3321
@override
3422
double get radiusDefault => BorderRawTokens.borderRadius0;
3523
@override
@@ -46,4 +34,20 @@ class OrangeBorderSemanticTokens extends OudsBorderSemanticTokens {
4634
String get styleDefault => BorderRawTokens.borderStyleSolid;
4735
@override
4836
String get styleDrag => BorderRawTokens.borderStyleDashed;
37+
@override
38+
double get widthDefault => BorderRawTokens.borderWidth25;
39+
@override
40+
double get widthFocus => BorderRawTokens.borderWidth125;
41+
@override
42+
double get widthFocusInset => BorderRawTokens.borderWidth50;
43+
@override
44+
double get widthMedium => BorderRawTokens.borderWidth50;
45+
@override
46+
double get widthNone => BorderRawTokens.borderWidth0;
47+
@override
48+
double get widthThick => BorderRawTokens.borderWidth75;
49+
@override
50+
double get widthThicker => BorderRawTokens.borderWidth100;
51+
@override
52+
double get widthThin => BorderRawTokens.borderWidth25;
4953
}

ouds_theme_orange_country/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Added
1010

11+
- [Library] Add border tokens ([#38](https://github.com/Orange-OpenSource/ouds-flutter/issues/38))
1112
- [Library] Add opacity tokens ([#36](https://github.com/Orange-OpenSource/ouds-flutter/issues/36))
1213
- [Library] Implement tokens architecture ([#37](https://github.com/Orange-OpenSource/ouds-flutter/issues/37))
1314
- [Library] Create the basics of a documentation ([#7](https://github.com/Orange-OpenSource/ouds-flutter/issues/7))

ouds_theme_white_label/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Added
1010

11+
- [Library] Add border tokens ([#38](https://github.com/Orange-OpenSource/ouds-flutter/issues/38))
1112
- [Library] Add opacity tokens ([#36](https://github.com/Orange-OpenSource/ouds-flutter/issues/36))
1213
- [Library] Implement tokens architecture ([#37](https://github.com/Orange-OpenSource/ouds-flutter/issues/37))
1314
- [Library] Create the basics of a documentation ([#7](https://github.com/Orange-OpenSource/ouds-flutter/issues/7))
Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,22 @@
1-
/*
2-
* Software Name : OUDS Flutter
3-
* SPDX-FileCopyrightText: Copyright (c) Orange SA
4-
* SPDX-License-Identifier: MIT
5-
*
6-
* This software is distributed under the MIT license,
7-
* the text of which is available at https://opensource.org/license/MIT/
8-
* or see the "LICENSE" file for more details.
9-
*
10-
* Software description: Flutter library of reusable graphical components for Android and iOS
11-
*/
1+
//
2+
// Software Name: OUDS Flutter
3+
// SPDX-FileCopyrightText: Copyright (c) Orange SA
4+
// SPDX-License-Identifier: MIT
5+
//
6+
// This software is distributed under the MIT license,
7+
// the text of which is available at https://opensource.org/license/MIT/
8+
// or see the "LICENSE" file for more details.
9+
//
10+
// Software description: Flutter library of reusable graphical components
11+
//
12+
13+
// Tokens version 0.5.0
14+
// Generated by Tokenator
1215

1316
import 'package:ouds_global_raw_tokens/border_raw_tokens.dart';
1417
import 'package:ouds_theme_contract/theme/tokens/semantic/ouds_border_semantic_tokens.dart';
1518

1619
class WhiteLabelBorderSemanticTokens extends OudsBorderSemanticTokens {
17-
@override
18-
double get widthDefault => BorderRawTokens.borderWidth25;
19-
@override
20-
double get widthFocus => BorderRawTokens.borderWidth125;
21-
@override
22-
double get widthFocusInset => BorderRawTokens.borderWidth50;
23-
@override
24-
double get widthMedium => BorderRawTokens.borderWidth50;
25-
@override
26-
double get widthNone => BorderRawTokens.borderWidth0;
27-
@override
28-
double get widthThick => BorderRawTokens.borderWidth75;
29-
@override
30-
double get widthThicker => BorderRawTokens.borderWidth100;
31-
@override
32-
double get widthThin => BorderRawTokens.borderWidth25;
3320
@override
3421
double get radiusDefault => BorderRawTokens.borderRadius0;
3522
@override
@@ -46,4 +33,20 @@ class WhiteLabelBorderSemanticTokens extends OudsBorderSemanticTokens {
4633
String get styleDefault => BorderRawTokens.borderStyleSolid;
4734
@override
4835
String get styleDrag => BorderRawTokens.borderStyleDashed;
36+
@override
37+
double get widthDefault => BorderRawTokens.borderWidth25;
38+
@override
39+
double get widthFocus => BorderRawTokens.borderWidth125;
40+
@override
41+
double get widthFocusInset => BorderRawTokens.borderWidth50;
42+
@override
43+
double get widthMedium => BorderRawTokens.borderWidth50;
44+
@override
45+
double get widthNone => BorderRawTokens.borderWidth0;
46+
@override
47+
double get widthThick => BorderRawTokens.borderWidth75;
48+
@override
49+
double get widthThicker => BorderRawTokens.borderWidth100;
50+
@override
51+
double get widthThin => BorderRawTokens.borderWidth25;
4952
}

0 commit comments

Comments
 (0)