dwave-theme 0.1.0__py3-none-any.whl

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.
@@ -0,0 +1,15 @@
1
+ # Copyright 2025 D-Wave
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ __version__ = "0.1.0"
@@ -0,0 +1,13 @@
1
+ # Copyright 2025 D-Wave
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
@@ -0,0 +1,118 @@
1
+ # Copyright 2025 D-Wave
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ """Central repository for color palettes and theme constants."""
16
+
17
+ # Primary Colors
18
+ _BRAND_MEDIUM_BLUE = "#2A7DE1"
19
+ _BRAND_MEDIUM_ORANGE = "#F37820"
20
+ _BRAND_MEDIUM_GREEN = "#17BEBB"
21
+ _BRAND_DARK_GRAY = "#222222"
22
+ _BRAND_DARK_BLUE = "#074C91"
23
+
24
+ # Secondary Colors
25
+ _BRAND_BRIGHT_BLUE = "#03B8FF"
26
+ _BRAND_DARK_ORANGE = "#AF4904"
27
+ _BRAND_DARK_GREEN = "#008C82"
28
+ _BRAND_LIGHT_PINK = "#FF81E1"
29
+ _BRAND_MEDIUM_PINK = "#E83E8C"
30
+ _BRAND_BRIGHT_GRAY = "#F0F0F0"
31
+
32
+ # Light Mode Neutrals
33
+ _LIGHT_BG_CANVAS = "#FFFFFF"
34
+ _LIGHT_BG_PLOT = "#FFFFFF"
35
+ _LIGHT_TEXT_PRIMARY = "#333333"
36
+ _LIGHT_TEXT_SECONDARY = "#666666"
37
+ _LIGHT_GRID = "#E5E5E5"
38
+ _LIGHT_AXIS_SPINE = "#CCCCCC"
39
+
40
+ # Dark Mode Neutrals
41
+ _DARK_BG_CANVAS = "#121212"
42
+ _DARK_BG_PLOT = "#121212"
43
+ _DARK_TEXT_PRIMARY = "#E0E0E0"
44
+ _DARK_TEXT_SECONDARY = "#A0A0A0"
45
+ _DARK_GRID = "#333333"
46
+ _DARK_AXIS_SPINE = "#444444"
47
+
48
+ PALETTES: dict[str, dict[str, list[str]]] = {
49
+ "qualitative": {
50
+ "light": [
51
+ _BRAND_MEDIUM_BLUE,
52
+ _BRAND_MEDIUM_ORANGE,
53
+ _BRAND_MEDIUM_GREEN,
54
+ _BRAND_DARK_GRAY,
55
+ _BRAND_DARK_BLUE,
56
+ _BRAND_BRIGHT_BLUE,
57
+ _BRAND_MEDIUM_PINK,
58
+ _BRAND_DARK_ORANGE,
59
+ _BRAND_LIGHT_PINK,
60
+ _BRAND_DARK_GREEN,
61
+ ],
62
+ "dark": [
63
+ _BRAND_MEDIUM_BLUE,
64
+ _BRAND_MEDIUM_ORANGE,
65
+ _BRAND_MEDIUM_GREEN,
66
+ _BRAND_BRIGHT_GRAY,
67
+ _BRAND_DARK_BLUE,
68
+ _BRAND_BRIGHT_BLUE,
69
+ _BRAND_MEDIUM_PINK,
70
+ _BRAND_DARK_ORANGE,
71
+ _BRAND_LIGHT_PINK,
72
+ _BRAND_DARK_GREEN,
73
+ ],
74
+ },
75
+ "sequential": {
76
+ "light": [
77
+ "#2595F5",
78
+ "#51A6F7",
79
+ "#70B6F9",
80
+ "#8FC6FB",
81
+ "#ADD5FC",
82
+ "#CCE5FD",
83
+ "#EBF5FF",
84
+ ],
85
+ "dark": [
86
+ "#0858A7",
87
+ "#0B5093",
88
+ "#0E487F",
89
+ "#123F6B",
90
+ "#153757",
91
+ "#192E44",
92
+ "#1C2630",
93
+ ],
94
+ },
95
+ }
96
+
97
+ THEMES: dict[str, dict[str, str]] = {
98
+ "light": {
99
+ "figure.facecolor": _LIGHT_BG_CANVAS,
100
+ "axes.facecolor": _LIGHT_BG_PLOT,
101
+ "text.color": _LIGHT_TEXT_PRIMARY,
102
+ "axes.labelcolor": _LIGHT_TEXT_SECONDARY,
103
+ "xtick.color": _LIGHT_TEXT_SECONDARY,
104
+ "ytick.color": _LIGHT_TEXT_SECONDARY,
105
+ "grid.color": _LIGHT_GRID,
106
+ "axes.edgecolor": _LIGHT_AXIS_SPINE,
107
+ },
108
+ "dark": {
109
+ "figure.facecolor": _DARK_BG_CANVAS,
110
+ "axes.facecolor": _DARK_BG_PLOT,
111
+ "text.color": _DARK_TEXT_PRIMARY,
112
+ "axes.labelcolor": _DARK_TEXT_PRIMARY,
113
+ "xtick.color": _DARK_TEXT_SECONDARY,
114
+ "ytick.color": _DARK_TEXT_SECONDARY,
115
+ "grid.color": _DARK_GRID,
116
+ "axes.edgecolor": _DARK_AXIS_SPINE,
117
+ },
118
+ }
@@ -0,0 +1,135 @@
1
+ # Copyright 2025 D-Wave
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ from typing import Any
16
+ import matplotlib.pyplot as plt
17
+ from dwave.theme.matplotlib.catalog import build_catalog
18
+ from dwave.theme.matplotlib.tools import show_palettes
19
+
20
+
21
+ __all__ = ["available_styles", "set_theme", "context", "show_palettes"]
22
+
23
+ _CATALOG = build_catalog()
24
+
25
+
26
+ def available_styles() -> list[str]:
27
+ """Returns a sorted list of all valid style names (both presets and components).
28
+
29
+ Returns:
30
+ list[str]: A list of strings that can be passed to ``set_theme()`` or ``context()``.
31
+ """
32
+ return sorted(_CATALOG.keys())
33
+
34
+
35
+ def _resolve_styles(names: tuple[str, ...]) -> list[str | dict[str, Any]]:
36
+ """Validates and unpacks style names.
37
+
38
+ Args:
39
+ names: A tuple of style names.
40
+
41
+ Returns:
42
+ resolved: A list of paths or ``rcParam`` dicts ready for matplotlib.
43
+
44
+ Raises:
45
+ ValueError: If a name is not found in the catalog.
46
+ """
47
+ resolved: list[str | dict[str, Any]] = []
48
+ for name in names:
49
+ if name not in _CATALOG:
50
+ raise ValueError(
51
+ f"Style '{name}' not found. Available: {available_styles()}"
52
+ )
53
+
54
+ val = _CATALOG[name]
55
+
56
+ if isinstance(val, list):
57
+ for item in val:
58
+ resolved.append(_CATALOG[item])
59
+ else:
60
+ resolved.append(val)
61
+
62
+ return resolved
63
+
64
+
65
+ def set_theme(*names: str) -> None:
66
+ """Applies the D-Wave theme globally to the matplotlib session.
67
+
68
+ This resets the existing matplotlib state to 'fast' before applying the requested styles to
69
+ ensure a clean state.
70
+
71
+ Args:
72
+ *names: Variable length argument list of style names.
73
+ If no arguments are provided, the 'default' preset is applied.
74
+
75
+ Raises:
76
+ ValueError: If a provided style name is not recognized.
77
+
78
+ Examples:
79
+ >>> # Apply the standard D-Wave look
80
+ >>> import dwave.theme.matplotlib as dwave_theme
81
+ >>> dwave_theme.set_theme()
82
+
83
+ >>> # Apply the dark mode preset
84
+ >>> dwave_theme.set_theme("dark")
85
+
86
+ >>> # Compose specific components manually
87
+ >>> # Base Layout + Dark UI + Qualitative Light Palette
88
+ >>> dwave_theme.set_theme("base", "theme-dark", "palette-qualitative-light")
89
+ """
90
+ if not names:
91
+ names = ("default",)
92
+
93
+ styles_to_apply = _resolve_styles(names)
94
+
95
+ plt.style.use("fast")
96
+ plt.style.use(styles_to_apply)
97
+
98
+
99
+ def context(*names: str):
100
+ """Context manager for temporary styling.
101
+
102
+ Useful for generating a specific plot (e.g., for export) without changing the global state
103
+ of the notebook or script.
104
+
105
+ Args:
106
+ *names: Variable length argument list of style names.
107
+ If empty, uses 'default'.
108
+
109
+ Returns:
110
+ A matplotlib style context manager.
111
+
112
+ Raises:
113
+ ValueError: If a provided style name is not recognized.
114
+
115
+ Examples:
116
+ >>> # Global theme is dark
117
+ >>> import dwave.theme.matplotlib as dwave_theme
118
+ >>> import matplotlib.pyplot as plt
119
+ ...
120
+ >>> dwave_theme.set_theme("dark")
121
+ >>> plt.plot(data) # doctest: +SKIP
122
+ >>>
123
+ >>> # Temporarily switch to `presentation-light` preset for a slide export
124
+ >>> with dwave_theme.context("presentation-light"): # doctest: +SKIP
125
+ ... plt.plot(data)
126
+ ... plt.savefig("slide.png")
127
+ >>>
128
+ >>> # Global theme remains dark here
129
+ """
130
+ if not names:
131
+ names = ("default",)
132
+
133
+ styles_to_apply = _resolve_styles(names)
134
+
135
+ return plt.style.context(styles_to_apply)
@@ -0,0 +1,87 @@
1
+ # Copyright 2025 D-Wave
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ from importlib import resources
16
+ from typing import Any
17
+
18
+ from cycler import cycler
19
+ import matplotlib
20
+
21
+ from dwave.theme.core.colors import PALETTES, THEMES
22
+
23
+
24
+ STYLE_RESOURCE = resources.files(__package__) / "styles"
25
+
26
+
27
+ def build_catalog() -> dict[str, Any]:
28
+ """Constructs the dictionary of all available style components.
29
+
30
+ This mixes static ``.mplstyle`` files with dynamic dictionaries generated from the core color
31
+ definitions.
32
+
33
+ Returns:
34
+ dict[str, Any]: A registry where keys are style names and values are either ``Path`` objects
35
+ (to ``.mplstyle`` files) or dictionaries (``rcParams``).
36
+ """
37
+ catalog: dict[str, Any] = {}
38
+
39
+ if STYLE_RESOURCE.is_dir():
40
+ for resource in STYLE_RESOURCE.iterdir():
41
+ if resource.is_file() and resource.name.endswith(".mplstyle"):
42
+ name = resource.name.removesuffix(".mplstyle")
43
+ catalog[name] = _load_mplstyle_resource(resource)
44
+
45
+ for name, settings in THEMES.items():
46
+ catalog[f"theme-{name}"] = settings
47
+
48
+ for kind, variants in PALETTES.items():
49
+ for variant, colors in variants.items():
50
+ key = f"palette-{kind}-{variant}"
51
+ catalog[key] = {"axes.prop_cycle": cycler(color=colors)}
52
+
53
+ # Define presets
54
+ catalog["default"] = [
55
+ "base",
56
+ "typography",
57
+ "theme-light",
58
+ "palette-qualitative-light",
59
+ ]
60
+
61
+ catalog["light"] = catalog["default"].copy()
62
+
63
+ catalog["dark"] = ["base", "typography", "theme-dark", "palette-qualitative-dark"]
64
+
65
+ catalog["presentation-light"] = [
66
+ "base",
67
+ "typography",
68
+ "presentation",
69
+ "theme-light",
70
+ "palette-qualitative-light",
71
+ ]
72
+
73
+ catalog["presentation-dark"] = [
74
+ "base",
75
+ "typography",
76
+ "presentation",
77
+ "theme-dark",
78
+ "palette-qualitative-dark",
79
+ ]
80
+
81
+ return catalog
82
+
83
+
84
+ def _load_mplstyle_resource(resource: Any) -> dict[str, Any]:
85
+ """Loads a packaged ``.mplstyle`` resource into an ``rcParams`` dictionary."""
86
+ with resources.as_file(resource) as path:
87
+ return dict(matplotlib.rc_params_from_file(path, use_default_template=False))
@@ -0,0 +1,36 @@
1
+ # Spines & Lines
2
+ axes.spines.top: False
3
+ axes.spines.right: False
4
+ axes.spines.left: True
5
+ axes.spines.bottom: True
6
+ lines.linewidth: 2.0
7
+ lines.solid_capstyle: round
8
+
9
+ # Grid
10
+ axes.grid: False
11
+ axes.axisbelow: True
12
+
13
+ # Figure
14
+ figure.figsize: 10, 7
15
+ figure.dpi: 300
16
+ figure.autolayout: True
17
+
18
+ # Ticks
19
+ xtick.major.size: 5
20
+ ytick.major.size: 0
21
+ xtick.minor.size: 0
22
+ ytick.minor.size: 0
23
+ xtick.direction: out
24
+ ytick.direction: out
25
+ xtick.major.pad: 5
26
+ ytick.major.pad: 5
27
+
28
+ # Saving
29
+ savefig.dpi: 300
30
+ savefig.bbox: tight
31
+ savefig.pad_inches: 0.2
32
+
33
+ # Legend
34
+ legend.frameon: False
35
+ legend.loc: best
36
+ legend.fontsize: 11
@@ -0,0 +1,23 @@
1
+ # 16:9 Aspect Ratio
2
+ figure.figsize: 12.8, 7.2
3
+
4
+ # Typography
5
+ font.size: 16
6
+ axes.titlesize: 24
7
+ axes.labelsize: 18
8
+ xtick.labelsize: 14
9
+ ytick.labelsize: 14
10
+ legend.fontsize: 14
11
+
12
+ # Visibility
13
+ lines.linewidth: 3.5
14
+ lines.markersize: 12
15
+ axes.linewidth: 2.0
16
+ xtick.major.width: 2.0
17
+ ytick.major.width: 2.0
18
+
19
+ # Padding
20
+ axes.titlepad: 25
21
+ axes.labelpad: 10
22
+ xtick.major.pad: 10
23
+ ytick.major.pad: 10
@@ -0,0 +1,4 @@
1
+ # Transparency
2
+ figure.facecolor: none
3
+ axes.facecolor: none
4
+ savefig.facecolor: none
@@ -0,0 +1,16 @@
1
+ # Font Stack
2
+ font.family: sans-serif
3
+ font.sans-serif: Open Sans, Arial, Helvetica, DejaVu Sans, sans-serif
4
+
5
+ # Sizes
6
+ font.size: 12
7
+ axes.labelsize: 12
8
+ axes.labelweight: bold
9
+ xtick.labelsize: 11
10
+ ytick.labelsize: 11
11
+
12
+ # Titles
13
+ axes.titlelocation: left
14
+ axes.titlepad: 15
15
+ axes.titlesize: 16
16
+ axes.titleweight: bold
@@ -0,0 +1,88 @@
1
+ # Copyright 2025 D-Wave
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ import matplotlib.pyplot as plt
16
+ import matplotlib.colors as mcolors
17
+ from matplotlib.axes import Axes
18
+
19
+ from dwave.theme.core.colors import PALETTES
20
+
21
+
22
+ def _plot_swatches(ax: Axes, colors: list[str], title: str) -> None:
23
+ """Internal helper to draw a simple row of color swatches on an axis."""
24
+ rgb_values = [mcolors.to_rgb(c) for c in colors]
25
+
26
+ ax.imshow([rgb_values], aspect="auto")
27
+
28
+ ax.set_yticks([])
29
+ ax.set_xticks(range(len(colors)))
30
+ ax.set_xticklabels(colors, rotation=90, fontsize=8)
31
+ ax.set_title(title, loc="left", fontsize=10, fontweight="bold")
32
+
33
+ for spine in ax.spines.values():
34
+ spine.set_visible(False)
35
+
36
+
37
+ def show_palettes(category: str | None = None) -> None:
38
+ """Plots the available color palettes defined in the core theme.
39
+
40
+ This creates a figure displaying the hex codes and colors for visualizing.
41
+
42
+ Args:
43
+ category: The specific palette category to show (e.g., 'qualitative').
44
+ If ``None``, shows all available categories.
45
+
46
+ Raises:
47
+ ValueError: If the provided category does not exist in the core definitions.
48
+ ValueError: If no palettes are found to display.
49
+
50
+ Examples:
51
+ >>> # Show everything
52
+ >>> from dwave.theme.matplotlib import show_palettes
53
+ >>> show_palettes()
54
+
55
+ >>> # Show only qualitative palettes
56
+ >>> show_palettes("qualitative")
57
+ """
58
+ if category:
59
+ if category not in PALETTES:
60
+ raise ValueError(
61
+ f"Palette category '{category}' not found. "
62
+ f"Available: {sorted(PALETTES.keys())}"
63
+ )
64
+ target_cats = [category]
65
+ else:
66
+ target_cats = sorted(PALETTES.keys())
67
+
68
+ plot_list = []
69
+ for cat in target_cats:
70
+ variants = PALETTES[cat]
71
+ for variant_name, colors in variants.items():
72
+ full_name = f"{cat} : {variant_name}"
73
+ plot_list.append((full_name, colors))
74
+
75
+ if not plot_list:
76
+ raise ValueError("No palettes found to display.")
77
+
78
+ n_plots = len(plot_list)
79
+ _, axes = plt.subplots(n_plots, 1, figsize=(8, 1.5 * n_plots), dpi=150)
80
+
81
+ if n_plots == 1:
82
+ axes = [axes]
83
+
84
+ for ax, (title, colors) in zip(axes, plot_list):
85
+ _plot_swatches(ax, colors, title)
86
+
87
+ plt.tight_layout()
88
+ plt.show()
@@ -0,0 +1,124 @@
1
+ Metadata-Version: 2.4
2
+ Name: dwave-theme
3
+ Version: 0.1.0
4
+ Summary: A centralized theme and configuration package for D-Wave projects.
5
+ Author-email: D-Wave <tools@dwavesys.com>
6
+ License-Expression: Apache-2.0
7
+ Requires-Python: >=3.11
8
+ Description-Content-Type: text/x-rst
9
+ License-File: LICENSE
10
+ Requires-Dist: cycler>=0.12.1
11
+ Requires-Dist: matplotlib>=3.10.6
12
+ Dynamic: license-file
13
+
14
+ ============
15
+ D-Wave Theme
16
+ ============
17
+
18
+ .. start_theme_about
19
+
20
+ ``dwave-theme`` is a centralized theme and configuration package for creating
21
+ unified, D-Wave-branded user interfaces and visualizations across D-Wave
22
+ projects. It provides:
23
+
24
+ * A central repository of D-Wave brand color palettes (qualitative,
25
+ sequential) with light and dark variants.
26
+ * Ready-to-use `matplotlib <https://matplotlib.org>`_ style presets, such as
27
+ ``default``, ``dark``, and ``presentation-light``, as well as composable
28
+ style components (base layout, typography, themes, and palettes) for
29
+ building custom looks.
30
+
31
+ .. code-block:: python
32
+
33
+ import matplotlib.pyplot as plt
34
+ import dwave.theme.matplotlib as dwave_theme
35
+
36
+ # List all available presets and components
37
+ dwave_theme.available_styles()
38
+
39
+ # Apply the standard D-Wave look globally
40
+ dwave_theme.set_theme()
41
+
42
+ # Or apply the dark preset
43
+ dwave_theme.set_theme("dark")
44
+
45
+ # Temporarily switch styles for a specific figure
46
+ with dwave_theme.context("presentation-light"):
47
+ plt.plot([1, 2, 3])
48
+ plt.savefig("slide.png")
49
+
50
+ # Preview the available color palettes
51
+ dwave_theme.show_palettes()
52
+
53
+ .. end_theme_about
54
+
55
+ Installation
56
+ ============
57
+
58
+ Installation from `PyPI <https://pypi.org/project/dwave-theme>`_:
59
+
60
+ .. code-block:: bash
61
+
62
+ pip install dwave-theme
63
+
64
+ During package development, it is often convenient to use an editable install:
65
+
66
+ .. code-block:: bash
67
+
68
+ pip install --editable .
69
+
70
+ Testing
71
+ =======
72
+
73
+ All code should be thoroughly tested and all pull requests should include
74
+ tests.
75
+
76
+ To run the tests, first install the package using an editable install as
77
+ described above, along with the test dependencies:
78
+
79
+ .. code-block:: bash
80
+
81
+ pip install --group test
82
+
83
+ The tests can then be run with `pytest <https://docs.pytest.org>`_:
84
+
85
+ .. code-block:: bash
86
+
87
+ pytest tests/
88
+
89
+ Versioning
90
+ ==========
91
+
92
+ This package follows `semantic versioning <https://semver.org>`_: breaking
93
+ changes to the public API are only introduced in major releases.
94
+
95
+ License
96
+ =======
97
+
98
+ Released under the Apache License 2.0. See LICENSE file.
99
+
100
+ Contributing
101
+ ============
102
+
103
+ Ocean's `contributing guide
104
+ <https://docs.dwavequantum.com/en/latest/ocean/contribute.html>`_
105
+ has guidelines for contributing to Ocean packages.
106
+
107
+ Release Notes
108
+ -------------
109
+
110
+ ``dwave-theme`` makes use of `reno <https://docs.openstack.org/reno/>`_ to manage
111
+ its release notes.
112
+
113
+ When making a contribution to ``dwave-theme`` that will affect users, create a
114
+ new release note file by running:
115
+
116
+ .. code-block:: bash
117
+
118
+ reno new your-short-descriptor-here
119
+
120
+ You can then edit the file created under ``releasenotes/notes/``. Remove any
121
+ sections not relevant to your changes. Commit the file along with your changes.
122
+
123
+ See reno's `user guide <https://docs.openstack.org/reno/latest/user/usage.html>`_
124
+ for details.
@@ -0,0 +1,15 @@
1
+ dwave/theme/__init__.py,sha256=KSfmr5UUg782iY3q1vFjf-BKe05gKWxLWCblN1Om5CY,593
2
+ dwave/theme/core/__init__.py,sha256=fLoxITojn5WQVnn30T-30PFbvRSNgGjPnbgTSM8Gwyo,570
3
+ dwave/theme/core/colors.py,sha256=sjjOUj2035djuYp1LWiN684vD9JBTWw7XqLKQdSezR0,3363
4
+ dwave/theme/matplotlib/__init__.py,sha256=kMgQg6S9IlW_x-4ZUtpgOP1DnOBWQZ2mGcpYkQ4Z6dI,4096
5
+ dwave/theme/matplotlib/catalog.py,sha256=0cEbkLPwc2jntnMaBxr-eU7xyDIIhWbvKnDK4TTMOD0,2734
6
+ dwave/theme/matplotlib/tools.py,sha256=M0cxps-QfJ7i9wPECw4pulIZ_KnxvwobTnUX-smV-Ho,2862
7
+ dwave/theme/matplotlib/styles/base.mplstyle,sha256=LSGj9eKkdZVUX7eIQ1BkH9aGwlv94SNd3iA8sQPl1_I,589
8
+ dwave/theme/matplotlib/styles/presentation.mplstyle,sha256=TWxHiHrZ8DMN133CizWr9j4SbLKcfQkrVK2BXMhgkHM,382
9
+ dwave/theme/matplotlib/styles/transparent.mplstyle,sha256=cFvZ0radnO6HTk07SnpCG_8-sj6peb1XZxtO2BZ3W7c,82
10
+ dwave/theme/matplotlib/styles/typography.mplstyle,sha256=JzzNMiIjHyOHiFEdf_pIsgHWr0EDsNw4Ggr_EY2N5Hc,306
11
+ dwave_theme-0.1.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
12
+ dwave_theme-0.1.0.dist-info/METADATA,sha256=XB6tLqFvIpTR938g-Eri4cXg5rG0mFgliApRELqxZ-g,3219
13
+ dwave_theme-0.1.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
14
+ dwave_theme-0.1.0.dist-info/top_level.txt,sha256=aTb-vnyXORvuDIahX6dn8y_5R8_lH1TU7rTM9M_bteE,6
15
+ dwave_theme-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1 @@
1
+ dwave