-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(odyssey-react): withTheme for Banner
- Loading branch information
1 parent
6b8d9a0
commit e56d09e
Showing
3 changed files
with
59 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
packages/odyssey-react/src/components/Banner/Banner.theme.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/*! | ||
* Copyright (c) 2021-present, Okta, Inc. and/or its affiliates. All rights reserved. | ||
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") | ||
* | ||
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* | ||
* See the License for the specific language governing permissions and limitations under the License. | ||
*/ | ||
|
||
import type { ThemeReducer } from "@okta/odyssey-react-theme"; | ||
|
||
export const theme: ThemeReducer = (theme) => ({ | ||
// Layout | ||
LayoutMaxlinelength: theme.LayoutMaxlinelength, | ||
|
||
// Space | ||
SpaceRemXs: theme.SpaceRemXs, | ||
SpaceRemS: theme.SpaceRemS, | ||
SpaceRemM: theme.SpaceRemM, | ||
SpaceRemL: theme.SpaceRemL, | ||
|
||
// Type | ||
FontSizeScale2: theme.FontSizeScale2, | ||
|
||
// Info Variant | ||
ColorPrimaryLight: theme.ColorPrimaryLight, | ||
|
||
// Success Variant | ||
ColorSuccessLight: theme.ColorSuccessLight, | ||
|
||
// Caution Variant | ||
ColorCautionLight: theme.ColorCautionLight, | ||
|
||
// Danger Variant | ||
ColorDangerLight: theme.ColorDangerLight, | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters